title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to inflate a xml layout in order to implement a listener for an android seekbar? | <p>I have been spending hours trying to implement a seekbar listener for my android app. Everytime I start the application it crashes.
I am trying to link the seekbar to a Threshold that can be manually changed over the seekbar. This is my layout xml file for the seekbar:</p>
<pre><code><FrameLayout xmlns:android="... | 3 | 1,211 |
ActiveRecord::StatementInvalid even when I add table in rails 2.3.18 | <p>I am working on maintenance project which has rails version <em>'2.3.18'</em> and <strong>rvm use ree-1.8.7-2012.02</strong> [ x86_64 ].
When i am runnin rake db:migrate after bundle install and rake db:create, i am getting the following error as:</p>
<pre><code>rake aborted!
Could not find table 'comments'
(See ... | 3 | 3,130 |
Wordpress on Ubuntu - "File not Found" for home.php - Trying to Redirect to Root Folder | <p>I recently did a one-click installation on a Ubuntu server set up via Vultr. There is a PHP URL path (site.com/home.php) that I want to 301 redirect to the root folder (site.com/) but nothign has worked so far. Here are a few things I tried...</p>
<ol>
<li>Set up .htacess file with mod rewrite rule (seems to ignore ... | 3 | 5,582 |
Azure Data Factory Dataset Structure Format | <p>I am creating a <a href="https://docs.microsoft.com/en-us/azure/templates/microsoft.datafactory/factories/datasets?tabs=json#property-values" rel="nofollow noreferrer">Microsoft.DataFactory/factories/datasets</a> resource via Terraform. Here is the template from the official docs:</p>
<pre><code>{
"type"... | 3 | 1,282 |
Avalonia Combo box binding | <p>I have an Avalonia MVVM based application. I am quite new to Avalonia and MVVM and am now working with combo boxes and bindings. My goal is to change the current view of the application when the user selects a combo box item from the combo box.</p>
<p>My first approach to handling this was using buttons as the combo... | 3 | 1,227 |
Codility Chromium challenge: count ascending sequences that alternate left and right | <p>I have struggled a lot with this Codility coding challenge: <a href="https://app.codility.com/programmers/challenges/chromium2017/" rel="nofollow noreferrer">https://app.codility.com/programmers/challenges/chromium2017/</a></p>
<p>(The basic problem is: given a list of integers, count the number of ascending sequen... | 3 | 1,410 |
MongoDB findOneAndUpdate Updates But Nothing Changes | <p>I have a cluster on atlas. My current object seems like below:</p>
<pre><code> {
"_id": {
"$oid":"5e9d8ccfb3d80e3824bf856c"
},
"user": {
"name":"test",
"channelGroups": [
{
"active": true,
"name": "an example of test",
"creationDate": "20 Apr 2... | 3 | 1,373 |
Django Update view saving but not updating | <p>I have made a working form to post reviews for restaurants.<br>
When user is logged in he can see displayed under his post the edit button.<br>
When I use the Updateview however, it doesn't edit, but instead creates a new line in which the new review appears (and that new line doesn't appear then on my webpage).<br>... | 3 | 1,149 |
Importing data using Swift 3 | <p>I try to import data from JSON array like this :</p>
<pre><code>let json = JSON(value)
let data: [[String: Any]] = self.transformJson(json)
MagicalRecord.saveInBackground({ (localContext) in
User.mr_import(from: data, in: localContext)
})
</code></pre>
<p>The problem is the mr_import swift method call <code>M... | 3 | 1,567 |
Save and Display most recent User Input | <p><em><strong>The Goal:</strong></em> Make a "Golf Scorecard" for a buddies trip Where any golfer (or anyone with website access) can enter a score for a hole. (Aka: Golfer Alex name is already there, as he plays someone in the group enters his score on in the box under "Hole 1". The scores will st... | 3 | 2,011 |
How to use HTMLCalendar | <p>I'm using Django, and I'm using the HTMLCalendar module to print a calendar on a page.
Currently, the code below works fine, but when the date between 'from date' and 'to date' is more than 2days, I want to express it in one line instead of adding an event to each date belonging to the period.
No matter how hard I s... | 3 | 2,905 |
Retrieva Data from Firebase for RecyclerView | <p>I create a recyclerView and i want to retrieve data from firebase and display it in recyclerview. I have create two models. <br>Check image for firebase
<a href="https://i.stack.imgur.com/faTgv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/faTgv.jpg" alt="enter image description here" /></a></p>... | 3 | 3,049 |
Thread can't read instances that are being modified by other threads | <p>This scheme shows the functions that are being discussed below...
<a href="https://i.stack.imgur.com/81bHa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/81bHa.jpg" alt="Concurrency problem being discussed." /></a></p>
<p>The <code>OrderBook</code> class looks like this:</p>
<pre><code>public cla... | 3 | 1,980 |
Getting main() error along with first_league = League('NBA') error | <p>I've been trying to make a simulation game. But then it keeps saying there's a problem with main() and first_league = League('NBA'). I've been using everything but it's not working.</p>
<p>Here's the python code:</p>
<blockquote>
<p>Python</p>
</blockquote>
<pre><code>import random
from player import generate_... | 3 | 1,408 |
aes() and aes_string() produce different behaviors in split_violin_plot | <p>I am trying to use a function from this <a href="https://stackoverflow.com/questions/35717353/split-violin-plot-with-ggplot2">post</a> to produce a split violin plot. </p>
<p>Here's the code:</p>
<pre><code>GeomSplitViolin <- ggproto("GeomSplitViolin", GeomViolin, draw_group = function(self, data, ..., draw_qua... | 3 | 1,296 |
i cant understand the response of an http request | <p>why it gives my a 405 error although code is supposed to logically work and the link have a working download
and I copy some working code from the internet to see what is happening like this topic
<a href="https://stackoverflow.com/questions/33576510/how-to-download-an-image-with-a-java-socket-http-1-1-request">How... | 3 | 2,045 |
E/UncaughtException: java.lang.ArrayIndexOutOfBoundsException: length=100; index=-1 | <p>So I am creating a Habit tracker that adds a value everytime you check a checkbox on the viewHolder, the problem I am having is that when I have 6 or more habits on the list, the checkboxes dont work properly (They start checking in a random order) anymore and give me the error above.</p>
<p>I am using this on my r... | 3 | 1,715 |
Method for sorting an evaluated Queryset (Django) | <p>I have the following function and test:</p>
<pre><code>def create_question(days, question_text="Empty"):
time = timezone.now() + datetime.timedelta(days=days)
return Question.objects.create(question_text = question_text, pub_date=time)
def test_two_past_questions(self):
"""
The questions index pag... | 3 | 1,161 |
How to read int,text and double from a file and store it into an arraylist? | <p>What I am trying to do is read a text file which has this lines</p>
<p>232131231, random name, 23.3232</p>
<p>I only know how to read it as a String of the whole line. I don't know how to read them individually. This is my test codes.</p>
<p>main</p>
<pre><code> public class JavaApplication9
{
int value1;... | 3 | 1,266 |
How to create a table with header rows and collapsible details rows in jQuery | <p>I am receiving data from a webservice in jQuery Ajax call like this:</p>
<pre><code>[
{
"grpRecord":{
"Group1":"17658",
"Group2":"0"
},
"lstRecords":[
{
"NA":"0",
"GROUP1":"17658",
"GROUP2":"0",
... | 3 | 1,796 |
Boost::Spirit compiler error when moving from Boost 1.49 to Boost 1.54 | <p>I have a simple grammar written in Boost::Spirit defined as follows:</p>
<pre><code>template <typename Iterator_T>
struct my_grammar :
qi::grammar<Iterator_T, vector<basic_value_t>(), qi::locals<size_t> >
{
my_grammar();
qi::rule<Iterator_T, vector<basic_value_t>(), qi::locals&... | 3 | 1,931 |
Program stops using tkinter with pyttsx3, why? | <p>I've been googling for almost a week now and I know there are similar questions, but none of them have an answer. So here is one more, which hopefully will lead to an answer. I wrote a small program for my kid where a word shows up, is pronounced and after clearing the word she needs to reproduce it. I used pyttsx3 ... | 3 | 4,628 |
Having issues trying to redirect file to stdin using dup2() and open() and execv() | <p>Edit: The issue is that echo does not read from stdin apparently. Thanks @Jonathan Leffler</p>
<p>I have a programming exercise, and my code is below:</p>
<pre><code>int processProgram(char **tokens, int requireWait) {
char *cmd = tokens[0];
if (access(cmd, R_OK) == -1) {
printf("%s not found\n&... | 3 | 2,095 |
Basic level linking leaflet to a database - recreating CoffeeShop example | <p>I am trying to work through the example <a href="http://ebooks.syncfusion.com/downloads/Leafletjs_Succinctly/Leafletjs_Succinctly.pdf?AWSAccessKeyId=AKIAJ5W3G2Z6F2ZHAREQ&Expires=1536651989&Signature=Cpgkf%2Fby590q0hETeD3HcAe1uhg%3D" rel="nofollow noreferrer">from Chapter 5 of the Leaflet.js succinctly book</... | 3 | 12,095 |
How to stop web page header scrolling off screen when a nav link is selected | <p>I'm having some problems with the following CSS/HTML. This is on a Mac but occurs both with Safari and Chrome, so it seems to be my CSS.</p>
<p>I'm trying to get a simple web page to display basic documentation for a personal project. I have a "fixed" header, then a navigation section and a main section un... | 3 | 2,641 |
How to add a suffix to an order number in Ruby | <p>I have a Ruby file that automatically turns customer orders from an eCommerce site into a CSV file. Different CSV files are printed according to different product vendors. </p>
<p>I need to add a suffix to the end of the order numbers for different vendors. For example, for a vendor named "Electric Styles", I need... | 3 | 1,949 |
How to send data to view from form after asking for confirmation? | <p>I created a simple form where I'm asking for user input and then posting that to the database. Now I would like the user to confirm the data in form is correct, and for that I'm using a <code>Bootstrap modal</code>.</p>
<p>How can I send the data from the form to the view when pressing the <code>'OK' button</code> ... | 3 | 1,390 |
White color not visible in toolbar | <p>I have a green toolbar in my layout and I inserted a textview into it to center the text horizontally. I want the text of the toolbar to be white and I choose the color white for that. However, the white text is barely visible. Can anyone help? I'd appreciate it. </p>
<p><a href="https://i.stack.imgur.com/gVPQm.png... | 3 | 2,315 |
Displaying JSON Weather API Response in PHP | <p>After looking through so many other questions here I'm still stuck with this. First I've never used JSON data ever before and am finding what should be rather simple to be rather tricky.</p>
<p>I have a JSON response like this from the DarkSky Weather API</p>
<pre><code>{
"latitude": -26.202271,
"longitude... | 3 | 9,323 |
ASP.NET foreach do not show items | <p>When I select Date in DateTimePicker, it's invoking <code>public ActionResult Index(DateTime? test)</code>. It returns some items into the view, but those items do not appear on Index. It seems that this does not work, and I'm unsure why:</p>
<pre><code><h1>Items</h1>
@foreach (var item in Model)
{
<... | 3 | 1,239 |
what is the use of innerHTml in scope angular .js? | <p>I make a pop up screen In angular.js ..I make this using google .But I have Question in that ..</p>
<pre><code><div ng-controller="ModalDemoCtrl">
<div inner-html-bind="" inner-html="modal_html_template" class="hidden">
</div>
</div>
app.directive('innerHtmlBind', function() {
... | 3 | 1,294 |
How to Move Bing Maps Menu to the Right side of Screen | <p>I'm using the Bing Maps API, which adds a menu bar to the top left of the screen:
<a href="https://i.stack.imgur.com/5QbbJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5QbbJ.png" alt="menu bar on left"></a></p>
<p>I would like to mirror how it is now and have the bar on the right, with the co... | 3 | 1,534 |
ERROR Error: ng-charts configuration error, data or datasets field are required to render chart line | <p>I am using <strong>ng-charts 2.4.0</strong> and <strong>chart.js 2.9.3</strong> for loading charts in <strong>Angular 10.0.14</strong> version.</p>
<p>Charts are loading but an error coming up in console as,</p>
<pre><code>ERROR Error: ng-charts configuration error, data or datasets field are required to render char... | 3 | 1,820 |
google meet link not getting added while creating events using google calendar API | <p>I am using google calendar API to add events in google calendar,but there is no google meet URL getting attached to the newly created events .what is I am doing wrong here?</p>
<p>this is the POST API I am using to create events <code>https://www.googleapis.com/calendar/v3/calendars/primary/events</code></p>
<p>req... | 3 | 1,500 |
Dropping duplicates within groups only | <p>I want to drop duplicates only in particular subsets from a data frame. Under each "spec" in the column "A" I want to drop duplicates, but I want to keep duplicates in the whole data frame (it is possible to have some rows under the first "spec" which are the same as rows under the second "spec", but under "spec" un... | 3 | 1,355 |
Adding custom layout to google's place picker(Android Studio ) | <p>I am using the place picker of google as a fragment in my app (it has no set content view method). When I change to place picker fragment the image I show on the top of fragment's in my activity is lost and all I see is the "view" that is provided by PlacePicker fragment. I have two problems.</p>
<p>1) I want to sh... | 3 | 1,957 |
inserting rss feed images into mysql database with feedparser, MySQldb and python | <p>i am able to parse an rss feed and save the links, tiles and description to my database successfully, however when i try to do the same for images in the same feed, i'm getting an error. I already checked if the xml file has the category 'image' to work with via:</p>
<blockquote>
<blockquote>
<blockquote>
... | 3 | 1,167 |
Is there any way to make browser page avoiding redirects in Pyqt5? | <p>I am working with pyqt5. I want user to click the browser embeded on my pyqt5 application to get the XPATH of the element which he/she is clicking on it.</p>
<p>I got the solution how to implement the above idea by someone but the page on the browser gets redirected to another page of the website. </p>
<p>What if ... | 3 | 3,866 |
GCM notification not displaying | <p>I am using GCM in my app,the issue is i am able to hear sound of notification but it is not displaying,following is my snippet code can any one help me to solve out that,thanks in advance,...................</p>
<pre><code>public class MyGcmListenerService extends GcmListenerService {
private static final Stri... | 3 | 1,377 |
React - How to get current state values in custom hooks with redux-toolkit? | <p>I've got a question. I have a custom hook like this:</p>
<pre><code>import { isNullOrUndefined } from '../../../../../../utils/utils';
import { useSelector } from 'react-redux';
export const useGoodsSetupWizardController = () => {
const productSetupWizard = useSelector((state) => state.productSetupWizard.... | 3 | 1,695 |
Calling variable from class in seperate python module (tk.Frames) | <p>I'm writing a <code>tkinter</code> app that has 3 pages in three different <code>.py</code> files. </p>
<p>I've reworked the code to allow me to create each frame by running a main overarching app which is <code>self.controller</code> in all the subsequent pages (thanks to some excellent users on this site). The re... | 3 | 1,032 |
How to generate all permutations of a list of maps? | <p>I'm working on an algorithm for a skat-player. Therefore I need a List of Maps <code>List<Map<Player, CardList>></code>. The map has always 3 players (FOREHAND, MIDDLEHAND, REARHAND) and the length of the CardList depends on number of tricks already played (if no trick is played the CardList has a length... | 3 | 1,150 |
Custom type conversion in model binding (ASP.NET MVC) | <p>I have a form that submits several string values. My model has one custom type ("Service"). Application gives error while trying to convert a string value to "Service". I am new to MVC. I appreciate your help!</p>
<p>Controller (Orders/Create):</p>
<pre><code> // POST: Orders/Create
[HttpPost]
public Ac... | 3 | 5,518 |
Rotation: Quaternion to matrix | <p>I am trying to display a 360 panorama using an IMU for head tracking.</p>
<p>Yaw works correctly but the roll and pitch are reverse. I also notice that the pitch contains some roll (and maybe vice-versa).</p>
<p>I am receiving (W, X, Y, Z) coordinate from the IMU that I am storing in an array as X, Y, Z, W.</p>
<... | 3 | 1,174 |
CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 happens when record is deleted | <p>A i understand in something with a cursor, but i can't figure out a solution for my own. So I need your help.
And it happens only when a delete a record. On DisplayContact.java in line 65.</p>
<p>Here is my class files.</p>
<p><strong>DisplayContact.java</strong></p>
<pre><code>import java.text.SimpleDateFormat;
... | 3 | 6,731 |
Alfresco 5.x WCM / Web QUick Start | <p>I am relatively new to ALfresco, but have alreay installed the 5.0.d Version once experimentilly and now try to set up the 201510 EA Version.</p>
<p>I am struggling with the set up of the Web Quick Start.
I noted from the earlier installation that the meat data need to have the real domain name instead of the local... | 3 | 2,010 |
Resetting function so there only is one open at the time | <p>Once again i have a problem. </p>
<p>I have this function below, and it works very well except for when you already have a div clicked visible. I need it to reset the whole thing and then run the function when you click it.
Ime pretty lost at it at the moment. </p>
<pre><code> <nav>
<ul>
... | 3 | 1,684 |
Jquery Dropdown Menu: The Dropdown works fine but animation doesn't work | <p><a href="http://jsfiddle.net/jerrypeng0112/ahm7q1bq/" rel="nofollow">http://jsfiddle.net/jerrypeng0112/ahm7q1bq/</a>
I've spent a while on this problem, The only way to make it work is to set a specific width for the <li> tag, but that would cause the long links word wrap. If I don't set it, it won't word wrap but t... | 3 | 2,218 |
Testing ActiveRecord against multiple databases in Travis (without dummy rails apps) | <p>I'm currently working on getting the <code>activerecord_any_of</code> library set up to use TravisCI for automated testing across multiple database types.</p>
<p>Currently I have the following:</p>
<p>In <code>.travis.yml</code></p>
<pre><code>language: ruby
script:
- bundle exec rake test
before_script:
- my... | 3 | 1,424 |
Punctuation and Near Query | <p>When I turned on <code>punctuation-insensitive</code> in my <code>cts:word-query</code>, even then the <code>NEAR</code> query is breaking the <code>-</code> word into two words</p>
<pre><code>let $xml :=
<abstracts count="1">
<abstract>
<abstract_text count="1">
... | 3 | 1,385 |
change dynamical values in rows angular | <p>Well I have a problem when I change the values of a table but just need that change the value of the row, but this happen in all rows.</p>
<p><a href="https://i.stack.imgur.com/QxR5w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QxR5w.png" alt="enter image description here"></a>
now if I chang... | 3 | 2,370 |
Xamarin Forms Android can't delete image from gallery or App folders with no error displayed | <p>I have a Xamarin Forms Android App and I can't delete images from gallery or App folders using the App. No error displays after failure. I am targeting Android 10.0. Relevant code is below:</p>
<p>\Interface</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Text;
namespace TCmTickets
{
... | 3 | 1,765 |
How to unstack a dataframe without creating nan? | <p>I'm starting with a dataframe as below (df2):</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>-</th>
<th style="text-align: left;">Day</th>
<th style="text-align: left;">Sorbent</th>
<th style="text-align: right;">Gabapentin 1</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td style="text-a... | 3 | 3,245 |
Can not set java.lang.Long field Event.idEvent to java.lang.Long | <p>I have a entity "Event" and when i want select a Event by id, i have this error :
Can not set java.lang.Long Event.idEvent to java.lang.Long</p>
<pre><code>javax.persistence.PersistenceException: org.hibernate.property.access.spi.PropertyAccessException: Error accessing field [private java.lang.Long Event.idEvent] ... | 3 | 2,940 |
how to improve perfromance of EventProcessorHost's receiving? | <p>I donnt know how to improve performance of EventHub's receiving.Now,i am using eventprocessorHost to receive data and the code is almost the demo of eventhub document,i have set options.MaxBatchSize to improve that,but it cannot meet performance .
So,i wonder to know if there is other api of eventhub that can enhanc... | 3 | 1,393 |
How to make DataTable draw new results? | <p>I have a problem with drawing new data into my table using <code>DataTable</code> plugin. I have table that show recepients of notification called <code>#recipientsTable</code> that is stored inside one modal. Now, whenever modal is opened it should show different recipients whose data I'm getting as a response from... | 3 | 2,580 |
How to print array and values from new cycle to next rows | <p>this is part of my code that i am working with and I have one problem. I have array with values (masyvas) and i started new loop to find other values by using masyvas(i,1) values and after that i need that new values would be printed in masyvas(i,2) and i need to group them. It need to look like this:</p>
<p>991988... | 3 | 1,055 |
Hide update and cancel button after click on update button | <p>We are using this code for updating the price.</p>
<p>Once we click on "update" button it's displaying as like in image.</p>
<p>What we need is once we click on "update" button, then "Update" and "cancel" button should hide. Now once we refresh the page, then only "Update" and "cancel" button is hidden, but it sho... | 3 | 1,597 |
MP3 files reduce in size and get corrupted after uploading from a form | <p>Here's the original mp3 file: <a href="http://eqreverb.com/sound_manager/songs/Pon-3jay%20LongR.mp3" rel="nofollow">Pon-3jay LongR.mp3</a><br>
And here's the corrupted version: <a href="http://eqreverb.com/form/uploads/songs/djdavid98/pon-3jay%20longr.mp3" rel="nofollow">pon-3jay longr.mp3</a></p>
<p>This is the sc... | 3 | 1,573 |
My app crash before call FBRequest didReceiveResponse | <p>I'm using a Facebook SDK with <code>FBConnect</code>. On my <strong>MainAppDelegate.m</strong>, I used this code:</p>
<pre><code>#import "MainAppDelegate.h"
#import "MenuViewController.h"
#import "LoginViewController.h"
#import "DataSet.h"
static NSString* kAppId = @"1234567891234567";
@implementation MainAppDel... | 3 | 4,004 |
getting results from sql join using perl | <p>this works</p>
<pre><code>TABLE users
userid firstname lastname
1 JOHN DEO
2 JANE DEO
TABLE msg
msg_id msg_from msg_to received
1 userid(1) userid(2) null
</code></pre>
<pre><code>$janedeo_id = 2;
my $data = $DBH->prepare("SELECT SND.u... | 3 | 1,477 |
reading parameters from create method | <p>I have a ruby on rails project that is using the devise gem for authentication. I'm trying to use a captcha form in the sign up page to prevent bots from creating thousands of dummy logins</p>
<p>I'm not interested in using the recaptcha gem that works with devise as I haven't had any luck setting it up correctly.<... | 3 | 1,076 |
How to make Ember controller handle server validation errors? | <p>I use RESTAdapter with Ember Data. How to make Ember controller handle server validation errors? I think this code should be in the line "console.log(todo.errors);" but I have no idea how to achieve rendaring needed template...</p>
<pre><code>App.TodosRoute = App.AuthenticatedRoute.extend({
model: function () {
... | 3 | 1,133 |
Why does the position of my button affect the position of my list? | <p>I'm making a webpage using html and css and I have positioned a horizontal list along the bottom of the page, but when I add a button to the centre of the page, it pushed the list further down the page. </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-cod... | 3 | 1,196 |
R: How to plot Line chart with multiple filterers. (R-shiny / flexdashboard) | <p>R: How to plot Line chart with multiple filterers. (R-shiny / flexdashboard).</p>
<p>I want to plot line chart with average present value from total no. of events employees have attended.</p>
<p><strong>Exmp:</strong>
Total events for employee A in 01/2019 is 4 where he was only present in 1 then it should display... | 3 | 1,202 |
ListView items from an ObservableCollection that need to prepare themselves for realization | <p>I have a ListView which is supposed to display a rather large number of items comprised of a "Name", a "Thumbnail" and a "AnimationPosition" property. A background task in each item's type is in charge of switching the thumbnails in order to animate them.</p>
<p>Now it goes without saying that this is a rather heav... | 3 | 2,114 |
Invoke from outside of a class .NET | <p>i am usinng Visual Studio C++ 2010.</p>
<p>I want to make thread-safe change in GUI from other than main thread, from function declared outside of a main Form class. Here is some code i have:</p>
<p><strong>Outside of a main class:</strong></p>
<pre><code>public delegate void DEBUGDelegate(String^ text);
</code><... | 3 | 1,219 |
Bootstrap 4.5.3 Tooltip placement "auto left" not working | <pre><code><div class="container">
<a href="#" data-toggle="tooltip" title="Hooray!">Hover over me</a>
<input type="email" class="form-control" placeholder="Enter email" id="email" data-toggle="tooltip" ti... | 3 | 1,300 |
Java RPi GPIO issue at runtime | <p>My Code Is This</p>
<pre><code>package me.Andrew.Keypad.Listener;
import java.util.HashMap;
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;
import com.pi4j.io.gpio.GpioPinDigitalInput;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import me.Andrew.Keypad.Main;
public class ButtonInp... | 3 | 2,324 |
Overlay a picture over background picture | <p>I'm making a street fighter game in java, I have all the background pictures finished, and I'm trying to add the characters onto the background, but in the output the character picture keeps appearing next to the background instead of on top of it. I want the character to appear on top of the background, just like a... | 3 | 5,310 |
OpenFoam Win 10, Ubuntu Bash installing fails | <p>I am trying to install OpenFoam on ubuntu bash on Win 10. I am following these steps:
<a href="https://www.openfoam.com/download/install-windows-10.php" rel="nofollow noreferrer">OpenFoam installation on win 10 Ubuntu bash</a></p>
<p>at this step </p>
<blockquote>
<p>source $HOME/.bashrc</p>
</blockquote>
<p>I ... | 3 | 4,187 |
Tree View - New Action should popup for user input , process selected records and close in Odoo 10 | <p>I have created a new tree View.</p>
<p>I need to update price with selected records based on user input .</p>
<p>My code :</p>
<pre><code> <record id="view_pricelist_upgrade" model="ir.ui.view">
<field name="name">priclist upgrade</field>
<field name="model">pricelist.up... | 3 | 1,283 |
how to share xsl code with stack overflow developer | <p>I am facing one issue while parsing my XML with an XSLT.<br>
I want to ask a question in this forum.<br>
But I am not able to share code.</p>
<p>No share button is present in <a href="http://www.w3schools.com/xml/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog" rel="nofollow noreferrer">this W3schoools example... | 3 | 1,244 |
Store and retrive Listview data using Shared Preferences | <p>I have a listview of ringtones .. I feed the list via mysql database.. (such as song names,song urls ...).
I dynamically add products(ringtones) in my listview by adding new item in my database, so none of this data are inside my app except row icons.</p>
<p><strong><em>This is the view</em></strong></p>
<p><a hre... | 3 | 3,185 |
SyntaxError: unexpected EOF while parsing Python Calculator | <p>I have a calculator in Python 3 but for some reason my code doesn't work. It works fine until I press the "=" button to calculate my thing (using tkinter for the gui). Here is my code (it is quite long, sorry for that, it is just a part from my code)</p>
<hr>
<pre><code>from tkinter import *
from tkinter.ttk impo... | 3 | 1,918 |
Unity C# script variable not changing in game when changed in script | <p>Very new to Unity, I'm making a tactical RPG game similar to Fire Emblem. I've followed a tutorial on movement from <a href="http://www.gameprogrammingacademy.com/unity-tutorial-tactics-movement/" rel="nofollow noreferrer">this</a> website and followed everything he did.</p>
<p>The player character can only move 5 t... | 3 | 7,095 |
React Redux reducer not returning | <p>I have an application that has to return only future events. I am able to parse through my firebase realtime db and return only future events in my action. It then passes this array of data to my reducer. In my reducer, I am logging the payload. The console log displays the data I want. Now in my component screen, I... | 3 | 1,304 |
Running Camel Route on Google App Engine | <p>I'm trying to start a Camel route on GAE and am running into one brick wall after the next. First I tried a route that looked like this:</p>
<pre><code>from("direct:start")
.process(new Processor() {
@Override
public void process(Exchange exchange) {
logger.info("I made it!");
... | 3 | 1,031 |
NoReverseMatch, but resolved on page refresh | <p>Using Django 1.8.6 and Python 2.7.9, I am encountering a strange phenomenon where my account activation URL is throwing a "NoReverseMatch" error, but once if I refresh the page, the error is resolved and the account is successfully activated. I've tried removing the '$' from each URL, I've tried namespacing URL's, a... | 3 | 1,981 |
Can't connect to redis bull from google cloud run | <p>I'm trying to setup my redis bull on Google Cloud run. Locally everything works.</p>
<p>I use the following code when the server starts:</p>
<pre><code>const client = redis.createClient('6379', '10.103.YYY.YYY');
</code></pre>
<p>This seems to be working. I don't receive any error on startup.</p>
<p>When I try to la... | 3 | 1,155 |
My ajax query is repeated how many times I open my modal (Select Dynamic) | <p>So, I have a project in laravel and now i'm working on the CRUD, specifically in the Update. Here I've a btn modal that show me the dates for edit and there I´ve a select dynamic.</p>
<p>The table with the btn:</p>
<pre><code>@foreach ($mascotas as $mascota)
<tr>
<td class="text-center">... | 3 | 3,995 |
NameError: name 'check' is not defined, but it is defined | <p>It says check isn't defined, but i did, right? I am planing on a Tic Tac Toe game with a GUI so it looks better than just console. Im new to object-oriented programing, if there are good guides out there, please link them. Also i need an idea for my player (spieler), to not use it globaly</p>
<pre><code>import tkin... | 3 | 1,486 |
java.security.InvalidKeyException: invalid key format ... PublicKey error | <p>i know there are multiple questions, but none have seem to adapt to what i need.</p>
<p>I need to validate a JWT token, i only have the PublicKey (which is fine as with that i can validate the sign of jwt.</p>
<p>Code is as follow.</p>
<p>First we have publicKey</p>
<pre><code>private static final String publicKey =... | 3 | 1,629 |
active-directory-xamarin-native-v2 sample project from Microsoft for Xamarin Forms is not working in iOS | <p>I am working on office365 authentication , took the code from github, for android build it is working fine, but in iOS not getting data response (token) from office365.</p>
<p>project link - <a href="https://github.com/Azure-Samples/active-directory-xamarin-native-v2" rel="nofollow noreferrer">https://github.com/Az... | 3 | 2,230 |
Cannot change predefined String value | <p>I am building an audio recorder app. To store created audio files i create them using this String to name them</p>
<pre><code>`public String inputName = "recorded_audio";`
</code></pre>
<p>this is the defult audio clip name unless the user types an other one by using <code>nameBtn</code></p>
<p>Later i use an oth... | 3 | 1,686 |
Why does UIView not stay on centre while it rotates? | <p>I am trying to calibrate a UIView to stay on centre as it rotates. This follows up a problem identified by the best answers to <a href="https://stackoverflow.com/a/39950137/2348597">my previous question</a>. I have since devised code based on <a href="https://stackoverflow.com/a/39951619/2348597">one answer</a> prop... | 3 | 1,857 |
Android FloatingActionButton compile error | <p>Hi i'm trying to add <a href="https://github.com/Clans/FloatingActionButton" rel="nofollow">Floating Action Button Library</a> to my project, but when I try to compile I get this error. Do you have any idea? </p>
<pre><code>Error:20:38:34.219 [ERROR] [org.gradle.BuildExceptionReporter]
20:38:34.219 [ERROR] [org.g... | 3 | 4,955 |
Performance of a simple jQuery slider | <p>I am learning jQuery and I have been trying to make a slider from scratch. Even though it works, the performance is not as smooth as I would like. I even tried toying with DOM caching, but performance still isn't perfect.</p>
<p>How can I improve it and, if possible, how can I shorten the code even more?</p>
<p><d... | 3 | 1,144 |
Insert data from iframe/textarea into db using php and java | <p>I can not insert data which has already been designed/written on an iframe. My code is below.</p>
<p>I tried changing the iframe to a textarea. This seemed to work, but I could not add formatting like bold, italic, different font sizes, etc.</p>
<p>Please help correct my code.</p>
<pre><code><!DOCTYPE html PUB... | 3 | 3,010 |
how to parse yahoo weather xml in android | <p>I am new to the android, I want to develop a sample application to display weather in my android application,I am using theURL "<a href="http://weather.yahooapis.com/forecastrss?w=2295425&u=c&#8221" rel="nofollow">http://weather.yahooapis.com/forecastrss?w=2295425&u=c&#8221</a>",In my application Th... | 3 | 3,347 |
Problem when using display none with divs and footer | <p>Ok, let's say that I have two buttons, a container with two divs and below I have my footer, like this:</p>
<pre><code><button id="bt1">Show all</button>
<button id="bt2">Show curses</button>
<div class="container">
<div class="one"><... | 3 | 1,892 |
Web audio volume change on two sliders | <p>I have asked this question previously but deleted it because it was the wrong code, i am currently working on a radio player and kinda new in Javascript, i need to add two volume sliders and when one goes up the other one also needs to go up with it. I tried checking and tried everything but nothing seems to help. W... | 3 | 2,172 |
Why am I not getting a response in this Chrome extension message exchange? | <p>I'm working on a chrome extension that requires jQuery (not too familiar with jQuery). I have some messages getting passed around, but at some point it stops working and I'm not sure why. Currently on manifest v2 but working on moving to manifest v3.</p>
<p>Here's the folder structure:</p>
<ul>
<li>chrome-extension
... | 3 | 2,543 |
How to use a service declared on Startup.cs outside controllers | <p>I am developping a web application using ASP.net core, I am new to this technology.</p>
<p>I am using a service to send emails, here is the class :</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using System.Net.Ma... | 3 | 2,397 |
MapReduce program in Hadoop that implements a simple “People You Might Know” | <p>The input file contains the adjacency list and has multiple lines in the following format: </p>
<pre><code>import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
... | 3 | 9,257 |
Is there a PHPmailer parameter to limit re-sends? | <p>When I use PHPmailer to send to a group of email addresses, it gets caught in a loop and keeps re-sending the email over and over (100 times or more). It doesn't always do this however. I can send to 10 or 12 addresses and it works fine. But a larger list (25 addresses) seems to have trouble. I did find some non-... | 3 | 4,494 |
Sticky menu problems on different Android versions while scrolling | <p>I'm using cordova 4 and ripple emulator to test my app on my computer.
I'm facing a problem with my sticky menu.
Here is my code:</p>
<p>HTML:</p>
<pre><code><header>
<div id="menu" class="bar" >
<span class="icon icon-bars"> </span>
<span class="icon icon-search">... | 3 | 1,039 |
React and Antd, form data destroys on fulllscreen drawer out of focus | <p>I have tried to remove the destroy on close, use same form hook, different form hook, removed from hook, but nothing worked.
I have consoled logged the form data on show modal and close modal. Show modal has the form data but inside the log of close modal the data is reset to <code>undefined</code>. As soon as the m... | 3 | 4,984 |
Constant sample based background subtraction and interpolation | <p>I need your expertise for a problem. I have the following matrix with different columns.</p>
<pre><code>Time subsamp raw filt_BG filter
230.5382060 1 1 1 0
230.5382176 2 1 1 0
230.5382292 1 4 0 1
230.5382407 2 4 0 ... | 3 | 1,370 |
Flutter firestore listen is interrupting by previous page firestore listen | <p>I am developing an app with firestore. In my app main screen i am calling firestore listener in <code>initState()</code>. when i am going next screen (Screen B) then the previous screen (main screen) <code>initState()</code> function
executing and interrupting listeners in screen B. I am not calling main screen ini... | 3 | 1,300 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.