title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Listview multiple item with seekbar, seekbar progress not working with the current onclicked position [Issue] | <p>I'm working with mediaplayer in listview now, and its working well, every single itemonclick, the different audio will played on their current Position. but the problem I facing now is :
each item I have create a Seekbar to display the progress for the mediaplay. the seekbar are working well for the <strong>first</s... | 3 | 1,574 |
Why does my HTML DIV push content in when invisible, rather than display above and obscure the other content when visible? | <p>I'm trying to, using only HTML and CSS (<em>no Javascript</em>), when the user hovers over an element (a <code><div></code>), display another (<code><div></code>) element.</p>
<p>My desired result is this: The second element (div#hover-content, in my case) should be displayed above the content which is ... | 3 | 1,363 |
startActivityForResult returning null when back navigation to activity sending result returns | <p>I have 3 activities that start in a sequence.With the first activity needing a result from the last activity.</p>
<p>I have it so that if Activity B is started for result (By activity A) then Activity B starts activity C for result. Then once the result is captured at activity C it is finished which calls Activity ... | 3 | 1,598 |
Oracle 11g - System performace impacted as the data grows | <p>Our system has quite a high level of concurrency with multiple java threads picking up one record at a time from a given Oracle 11g table which normally holds about two millions records.
There are always many records ready to be picked up for processing. The records ready to be processed are selected based on a rela... | 3 | 1,556 |
Getting error while printing hello world in spring MVC | <p>I am making simple hello world in spring using MVC taking help from this site
<a href="http://viralpatel.net/blogs/spring-3-mvc-create-hello-world-application-spring-3-mvc/" rel="nofollow">http://viralpatel.net/blogs/spring-3-mvc-create-hello-world-application-spring-3-mvc/</a></p>
<p>But I am getting error .</p>
... | 3 | 1,509 |
How do I create pandas DataFrame based off start and end signals from other DataFrames? | <p>So in essence how do I take A(entry signals) and B(exit signals) and make C(trade signals)</p>
<p>Note that A is the Entry signal, and that B is the exit signal.
So:</p>
<pre><code>A B C
0 1 0 (no entry signal yet, so 0)
1 0 1 (got entry signal and haven't gotten exit signal yet, so 1)
0 0 ... | 3 | 1,995 |
PDF file shows only 3 or more checked items | <p>I have a Kendo Grid with a column (UniqueId) that can be checked:</p>
<pre><code>columns.Bound(c => c.UniqueId.ClientTemplate("<input type='checkbox' class='primaryBox' id='#= UniqueId #' value='#= UniqueId #'>#= UniqueId #</input>");
</code></pre>
<p>The checked items have been sent to the ASP.N... | 3 | 1,553 |
Centerr aligned UI components not scrolling up/down properly if added in ScrollVIew | <p>There seems to be an ui scrolling issue when we center aligned all UI components using scrollview and taps on edittext which pops-up keyboard then not all ui scrolling up/down properly if added in ScrollVIew. There seems to problem with the current approach as its not allowing us to adjust after using all available... | 3 | 3,787 |
How can I correctly implement a Spring Data JPA repository method retrieving all the objects related to a list of object? (not to a single one) | <p>I am working on a Spring Boot application using Spring Data JPA and I have the following problem.</p>
<p>I have this <strong>EventLog</strong> entity class:</p>
<pre><code>@Entity
@Table(name = "log")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties({"hibernateLazyInitializ... | 3 | 6,087 |
Laravel's Trait proper usage inside Controller | <p>I am trying to make my code more readable and reusable along my app.
I created for this purpose a Trait but I couldn't use it (probably I didn't understand the right way to import it).
My code is as follows:</p>
<p>Trait</p>
<pre><code> namespace App\Http\Traits;
use App\Models\FlightManagement\Aircraft;
use App... | 3 | 1,324 |
Finding and Filling Missing Observations (Whole Rows not NA Values) with Mean Values | <p>I am hoping to get some help identifying:</p>
<ol>
<li>The location of missing observations when no NA values are present
(entire row is missing).</li>
<li>Create a row for the missing data with mean values based on mean values from certain categories.</li>
</ol>
<p>My df:</p>
<ul>
<li><p>Numerical load data from ho... | 3 | 1,333 |
Make React-redux get all data from paginated backend | <p>I have an application I've been developing for my company to convert data from an old system to a new one. It has a Django Rest Framework back end with a react / redux powered front end. Functionally the program does what I want it to, but it doesn't want to pull all the data. The back end API is paginated to a pag... | 3 | 1,140 |
getting ConverterNotFoundException | <p>I am working in <code>spring boot</code> project. In my <code>JPA repository</code>, I am using <code>sql</code> native query with pagination enabled. However on service layer I am getting <code>ConvertorNotFoundException</code>.. tried many times with different data types..but all in vain. Below are my code classes... | 3 | 3,252 |
how to store results in more than one variable from a PHP that access a database | <p>I'm new to this and I have trouble understanding how all things works. </p>
<p>I have a php/html page and a login form in it. The login submit button executes a php file (let's say check_user.php) in which theoretically it checks the user and password i put in the form in a database. If it finds them I want the php... | 3 | 1,389 |
JRadioButton and JCheckBox don't respond to right mouse click | <p>I am trying to have JRadioButtons and JCheckBoxes that respond to right mouse clicks as well as left mouse clicks. I am finding that they don't respond to right mouse clicks properly, but I can't figure out why.</p>
<pre><code>private JRadioButton btn1 = new JRadioButton("1");
private JRadioButton btn2 = new JRadi... | 3 | 1,119 |
jQuery find() on object created from a string | <p>I have a string with a value such as <code><select name="id"></select></code>.</p>
<p>As I'd like to popupate that select, I thought of doing something like this to find the select, and popupate it afterwards:</p>
<pre><code>$("<select name="id"></select>").find('select').html('<option v... | 3 | 1,202 |
installing regex on python 2.7 fails with exit status 1 | <p>I want to use the <a href="https://github.com/jaijuneja/PyTLDR" rel="nofollow noreferrer">PyTLDR</a>. Someone in the <a href="https://github.com/jaijuneja/PyTLDR/issues/3" rel="nofollow noreferrer">issue section</a> on GitHub stated that the module was written in Python 2. Therefore, I set up a Python 2.7 environme... | 3 | 3,645 |
Is there a way to trim out observations with a known format? | <p>I am working with a database with 40+ variables. Each case has a unique identifier for its property. Some of these identifiers have been inputted into the address variable. </p>
<p>The identifiers can only take the following formats:</p>
<pre><code>NA123456 - First letter constant - N, 1 Letter A-K, Numbers 1-9
SA... | 3 | 2,104 |
How to use HockeyApp SDK with Qt on Android | <p>I am trying to integrate the <a href="https://hockeyapp.net" rel="nofollow noreferrer">HockeyApp</a> Android SDK in its <a href="https://hockeyapp.net/releases" rel="nofollow noreferrer">latest version 4.1.2</a> into our Qt Android app. I don't know a lot about Android development or Java in general - nor any Qt or ... | 3 | 4,009 |
Can't get MonoDroid 4.0.6 x86 Emulation or GoogleTV to work | <p>First off all, i'm on OSX 10.7.3 using MonoDevelop 2.8.8.4 with MonoDroid 4.0.6 and Mono 2.10.9.</p>
<p>So I have purchased MFA and have created the generic "Mono for Android Application" project for testing.
I have checked the ABIs to "armeabi", "armeabi-v7a" and "x86" in the Advanced tab under Option/Build/MonoFo... | 3 | 1,775 |
How to implement drop down list in waterfall model using microsoft bot framework | <p>I am trying to implement drop down in waterfall model using dialogue. First step is prompting user to enter name, then ask user to enter age and then city where user needs to travel. And user must select the city from drop down list and i want to forward the information to the next waterfall step.
My code for select... | 3 | 2,847 |
Catch Data from URL params in react class Compoent | <p>First of all I like to convey thanks all the wise programmer. After updating react react-router-dom i am facing this problem. Here i want to mention one thing that, i am a "class component" lover.</p>
<p><strong>However, This is my base component in react.</strong></p>
<pre><code>import React, { Fragment, ... | 3 | 1,632 |
javascript NodeList Selector | <p>I would like to say thank you in advance for all the help that will be provided so here is my problem.</p>
<p>I'm trying to make a simple to-do app I'm at the step where I want to be able to delete some items from the list array (every new list item is pushed inside an array) so I add a button to each task to delete... | 3 | 1,743 |
How to display 5 inputs in 1 row on a page with a custom width in bootstrap | <p>I want to have 5 inputs in 1 row on a page with a custom width, for example: the amount input should be smaller and the offer input should be bigger I am trying but I do not understand how to do this. I tried adding 5 columns and then added col-lg-2 class to the inputs I want small and col-lg-4 to the ones I want bi... | 3 | 2,308 |
Getting CefSharp to play nice with CSScript | <p>I have an application that uses a <code>CefSharp.OffScreen</code> browser to do a bit of scraping work. It runs in a scripting environment using CSScript to execute a dynamically-loaded class that calls CefSharp to do the work.</p>
<p>CefSharp works perfectly fine in a <code>bin</code> environment. <a href="https... | 3 | 1,049 |
restructuring a multidimensional php array | <p>Currently I am trying to restructure a multidimensional array that is the result of a database query. The goal is to finally encode the array as JSON as follows, but the php function i have written isn't working (see code at end):</p>
<pre><code>desiredJSONoutput = {"TypeA":[
{"1":[
{"TypeB":[4,5]},
... | 3 | 3,613 |
How to check if contact information exists in my Outlook contacts list? | <p>I have code which adds contacts from a worksheet to my Outlook contacts. Each Contact is on a separate line and has 5 columns with First Name, Last name, Email Address, Company and Mobilephone Number.</p>
<p>How do I add only those lines from the worksheet, which aren't in my contacts, so it doesn't create duplicate... | 3 | 1,566 |
Joomla and AJAX | <p>I'm having a terrible time trying to get the ajax call below working in my Joomla 3.6 component. The javascript function below works in the sense that it does return the data and display it in the page--for a split second--then the page reloads, and I get the result of view.html.php, which is not what I need here. I... | 3 | 1,289 |
null pointer exception in slider menu | <pre><code>public class Search_HotelActivity extends Activity implements OnClickListener {
Button btnClick;
Button btnSelect;
Button btnCancel;
Button btn_Filter;
DatePicker dp1;
int Year, Month, Day;
TextView tvDate;
Dialog d;
private DrawerLayout mDrawerLayout;
private ListView mDrawe... | 3 | 3,512 |
How to return an array of courses and rooms where the room capacity is greater than or equal to the course enrollment | <p>I am struggling with how to return an array of courses that includes an array of rooms with a capacity that is greater than or equal to the course enrollment of each course. </p>
<p>The following code returns an array in the structure I want, but only the last value. I have tried array_merge_recursive, and either g... | 3 | 1,860 |
create new does returns 'list' object has no attribute 'create' | <p>I am trying to create a autocomplete input which can create a new object. </p>
<pre><code>class CellLineAutocomplete(autocomplete.Select2QuerySetView):
create_field = 'cell_line_name'
model = CellLine
def has_add_permission(self, request):
return True
def get_queryset(self):
if self... | 3 | 1,117 |
Object function can return None with certain parameters, how to skip or avoid while converging in Curvefit? | <p>In my situation, the objective function is a numerical process contains a root finding process for an equation by bisection method.
With certain set of parameters, the equation does not have root for a intermediate variable. I thought making the bisection root finding routine return <code>None</code> can solve such... | 3 | 1,186 |
Show a div while checked is on true, Custom Gutenberg Block | <p>I a clue to show a div whenever the user check an input with the type of checkbox.</p>
<p>To see the behavior i'm waiting for, i share you a screenshot of what the display looks like.</p>
<p><a href="https://i.stack.imgur.com/ocCNb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ocCNb.png" alt="Gu... | 3 | 1,511 |
Why does Rust emit 280 lines of assembly code to print "Hello, world"? | <p>A simple 3-line Hello, World program in Rust emits a 280 line assembly file in order to print two words. Meanwhile, <a href="https://gist.github.com/FiloSottile/7125822" rel="nofollow noreferrer">a pure assembly version of this program</a> only takes ~15 lines. Why is the Rust version so much longer?</p>
<p>This is... | 3 | 4,574 |
Exception when move assignment operator is used on a r-value | <p>I get a very strange crash (in debug mode only) when using the move assignment operator with a r-value:</p>
<p>Cleaning and recompiling the code in debug mode does not help. The crash occurs before VulkanBuffer::operator=() is called.</p>
<pre><code>// ok
//VulkanBuffer myBuffer(logicalDevice, bufferSize, VK_BUFFE... | 3 | 2,561 |
antlr grammar definition | <p>I am relatively new to compilers theory and I just wanted to create a grammar to parse some comparisons in order to evaluate them later. I found antlr which is a powerful tool to specify the grammar. From what I have learned in the theory I know that operators with higher precedence must be declard in deeper levels ... | 3 | 1,058 |
Issue dropping credits from course in Java dropCourse Method | <p>What I have is a two snippets of code. The question I have in particular is about my dropCourse method within the student driver. Everything in my code seems to work fine except when I drop a course it does not drop the courses credits. For example, if I drop a course named "Computer101" which had four credits, it w... | 3 | 3,689 |
Problem using aggregation in mongodb retrieving data from two collections | <p>i am strugling with a query that i don't know how to perform... I have two collections,</p>
<p><strong>Tarifas Collection</strong></p>
<pre><code>tarifaConfig = new Schema({
producto: { type: String },
titulo: { type: String },
bloqueo: { type: Boolean },
margen: { type: Number },
precioVenta: ... | 3 | 1,222 |
Member Functions showing error in JAVA (intelliJ IDEA) | <p>I coded a program which is in intelliJ IDEA.But i dont know y all the functions (objects) are showing error saying..
1. Cannot resolve method "MulCom(complex1)"
2. Cannot resolve method "SumCom(complex1)"
3. Cannot resolve method "SubCom(complex1)"</p>
<p>The code is as follows:</p>
<pre><code>import java.util.Sca... | 3 | 1,132 |
Repositioning divs via nth-child for different browser widths in jQuery | <p>I found a simple method within jQuery that allows me to add divs after other divs, based on the viewers browser width. So what I do is tell the browser to insert the "test5" div after the 30th "inner" div, if the browser width exceeds 500px. Then I also tell it to remove this div if the browser width is less than 50... | 3 | 1,676 |
QTextDocument::contentsChanged doesn't seem to be triggered on formatting changes | <p>I would like to do certain updates when the text contents change or font or alignment change on QGraphicsTextItem.</p>
<p>So I connected <a href="http://doc.qt.io/qt-4.8/qtextdocument.html#contentsChange" rel="nofollow">QTextDocument::contentsChanged()</a> to a slot that does the update. </p>
<blockquote>
<p>Th... | 3 | 1,140 |
adding a gridview's values in a label with asp.net C# | <p>I have a gridview and a button.When I click the button a sentence is written in my form. I want call the datas entered in the gridview and see them in the label.
Here is my code but it does not work:</p>
<pre><code>//code of gridview:
<asp:GridView ID="GridView1" runat="server" AutoGenerateCo... | 3 | 1,340 |
Error while adding click listeners to the menu items of a navigation drawer using View Binding | <p>When I try to add click listeners to the menu items using <code>binding.navigationView.setNavigationItemSelectedListener</code>, it throws me an error saying <strong>Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type NavigationView?</strong></p>
<p>So when I add the safe call ... | 3 | 2,464 |
Flutter - DrowpdownMunu Items not populating from List | <p>I'm stuck with a DrowdownButton that is not populating any data.</p>
<p>It's populating from a list passed from the previous screen.</p>
<p>My debug indicates that the list has data that can be parsed. The output just produces an empty DropdownButton.</p>
<pre><code>import 'dart:async';
import 'package:flutter/mater... | 3 | 1,635 |
python pygame input controls | <p>what are some ways i could get input from the user and move the player image? i can move the player image everytime i press W, A, S, or D but it only moves 1 pixel over. what can i do to make it move while a key is pressed?</p>
<pre><code>import pygame
from pygame.locals import *
pygame.init()
size = width, heigh... | 3 | 1,104 |
MySQL: get all users who haven't done any training in 2 years | <p>I need to get all users who haven't carried out any training in the last two years. </p>
<p>We run 3 courses a year: Basic 1 in January, Basic 2 in February and Basic 3 in March.</p>
<p>Not everyone needs to do the training each year but everyone must have completed a course in the last 2 years in order to keep th... | 3 | 1,570 |
Construct a circle of nested squares | <p>I want to construct a circle of nested squares like this:</p>
<p><img src="https://i.stack.imgur.com/VgR3h.png" alt="circleOfSquares"></p>
<p>In the moment, I am programming in JavaScript/HTML5 canvas. This is my code:</p>
<pre><code><html>
<head>
<title>Circle of squares</title>
<scrip... | 3 | 1,919 |
Nested v-for Loop in Vue Selecting Wrong Checkbox | <p>I have a nested loop in a vue component. The first loop is to create four dropdown boxes, the second loop is to create three options within each dropdown box. I have attached the image to illustrate. They work correctly in that if I select the checkbox for any of the options within any dropdown box then the correct ... | 3 | 1,057 |
cmaps vs plt.style.use. What's the difference? | <p>I noticed that there are two ways to change the themes of a plot in matplotlib:</p>
<p>1) type the style before the plot: eg:</p>
<pre><code>plt.style.use("seaborn-darkgrid")
</code></pre>
<p>2) using the 'cmap = "seismic"' inside the scatter plot arguments.
eg: </p>
<pre><code>scatter1 = ax.scatter(df["age"],df... | 3 | 1,043 |
ngModel returns empty result to CreateComponent | <p>I want to capture the <code>Employee</code> result, so I defined the <code>Employee</code> object and try to capture those values using <code>[ngModel]</code>, but I get empty results. could you please help me to resolve this?</p>
<p>Employee.ts</p>
<pre class="lang-js prettyprint-override"><code>import {IEmployee} ... | 3 | 1,076 |
How can I get the most liked Tweet of a particular day? | <p><a href="https://twitter.com/search?q=min_faves%3A100%20lang%3Aen%20until%3A2010-1-24%20since%3A2010-1-23&src=typed_query" rel="nofollow noreferrer">Here</a> is my example query. It specifies that Tweets must be:</p>
<ul>
<li>Written in English</li>
<li>Tweeted between 23Jan2010 and 24Jan2010</li>
<li>Have at l... | 3 | 1,184 |
CTD in Excel VBA | <p>My macro is causing excel to crash to desktop with no debug or error message, the whole application shuts down, closing any open instances of excel.</p>
<p>The code that I've written so far is pretty light, so I have no idea what is causing the crash.</p>
<p>The crash appears to occur after <code>StartGame()</code... | 3 | 1,855 |
I want to display data when i click on customer name form dropdown list it will display only that customer's message and entry date | <p>My code works properly, it is display all messages and entry dates. I want to display message and entry date when I select customer name from drop down list. </p>
<p>Here is my controller <code>CustomerlifecycleController</code></p>
<pre><code> public function actionCustomerlifecycleanalytic() { ... | 3 | 1,242 |
When you click on an item you want to fragment the city, but he does not work | <p>When an item is clicked I want to see the city fragment, but it does not work.
It works in the navigation menu, but when you click on an item that does not work.</p>
<pre><code>public class CityFragment extends Fragment implements CityAdapter.OnOverViewClick {
//Views
private RelativeLayout rl;
privat... | 3 | 1,530 |
Select All checkbox not firing back end code | <p>I have added a select all checkbox to my page and coded the logic for it with JQuery:</p>
<pre><code><script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.min.js">
</script>
<script>
$(document).ready(function () {
var chkAll = $("#<%= chkSelectAll.ClientID %>");
... | 3 | 8,532 |
getting already posted post fields and updating them using jquery | <p>I'm working on laravel, want to edit post having multiple fields to edit.
<strong>I've successfully done this with my post's body field , want to achieve with the other two.</strong></p>
<p>Related <code>controller</code> code:</p>
<pre><code>$post->body=$data['body'];
$post->state = $data['state'];
$post-&g... | 3 | 1,248 |
How can I convert existing procedural code to use classes? | <p>I'm trying to learn Java and basically my approach has been to take the procedural style I learned with python, and apply it to Java. So I never use classes and just put everything in a single class with many methods(which I just use as python functions). I think I've hit a problem, and need to bite the bullet and... | 3 | 1,952 |
Use API JSON to display a URL for an HTML Page | <p>I am completely new to all of this so please forgive any issues with how I'm describing and name things. I have an HTML page where the user enters a portion of a URL string in order to launch a new window with the complete URL string. I'd rather just lookup the portion of the URL using an API to create a JSON file... | 3 | 8,170 |
mvc3 with EF code first insert many to many | <p>I have a Many to Many relationship defined as</p>
<pre><code>public class Article
{
[Required]
public int Id { get; set; }
[Required]
public string Title { get; set; }
[Required]
public string Descrip... | 3 | 2,126 |
Flask wtf form not validating custom validators | <p>So i have a login form and signup form on a single html page. I have custom validators for signup form that are not working.
The <em><strong>routes.py</strong></em> looks like this</p>
<pre class="lang-py prettyprint-override"><code>@app.route("/", methods=['GET', 'POST'])
def home():
login_form = Logi... | 3 | 3,753 |
Div with both floating element and vertically centered dynamic content inside | <p>That's a famous problem but still I could not find a solution to it. What I want to achieve is this:</p>
<pre><code><div>
<div class="buttons" style="float: right">BUTTONS</div>
.... random content of any length/size here vertically centered
</div>
</code></pre>
<p>Now... | 3 | 1,180 |
SQL Server / XML: change level of nested query results | <p>can someone tell me how I have to change the following so that the results of the nested query (<code>items</code>) appear one level below <code>dateRange</code> instead of on the same level (which is what I get at present) ?</p>
<p><strong>My SQL:</strong></p>
<pre><code>SELECT A.dateRange,
(
... | 3 | 1,163 |
scenario is taken correctly but does not work validation | <p>Hi I take user data to two models If the user clicks the checkbox (company) it show him the additional data that needs to complete. I needs to work on scenario if checbox = 1 the data fields of the form must be passed. It is my action from the controller:</p>
<pre><code>public function actionCreate() {
$mod... | 3 | 2,182 |
AngularJS, PHP form works fine on my own server. inserts blank rows into database on Godaddy | <p>I changed the database credentials to match my database, and my user has all privileges. Everything works fine on my own server with Apache and PHPMyadmin. I don't know what to do next.</p>
<p>App.js </p>
<pre><code> var myapp = angular.module('app', []);
myapp.controller('submitctrl', function($scope, $http){
... | 3 | 1,098 |
Form doesn't display in template - Django | <p>I try to create a form in Django's app but nothing display in browser.</p>
<p>Here my app.models.py :</p>
<pre><code>from django.db import models
class Scrape(models.Model):
query = models.CharField(max_length=100)
author = models.CharField(max_length=100)
date = models.DateTimeField('date scraped')
h3 = mo... | 3 | 1,394 |
Edit the amount of colors available in a picture plotting program. It's written in C with Xlib | <p>I'm a fortran programmer working with a program written in C (which I have Little to no experience with).</p>
<p>I have a program written in fortan that creates an image in the form of a multidimentional array of pixels with their X value, Y value, and RGB values (0-4 for each color). It then passes the array, the ... | 3 | 3,031 |
Dockerized Angular - Nginx try_files does break with hard refresh | <p>We are running a multi-language Angular app using the node-alpine image as base. Our application builds for once for each language and all build are packed into the same image. Routing between the images is done with an Nginx server in the image and language-specific baseHrefs.</p>
<p>We are also using Angular routi... | 3 | 4,379 |
SQL to Linq then to Lambda using navigation properties | <p>I'm trying to build a lambda expression to get the grand total but I'm still struggling to achieve the desired result. I've managed to achieve the same using SQL and LINQ using joints but it would be great if someone could give me a hand to re-write the query using lambda and navigation properties (without joints).<... | 3 | 1,094 |
Render QR Code from item id using separate view and component file | <p>I have a view file and a QR component. I need to render the QR code in my component based on the id I pass from the parent view.</p>
<p>Scan.vue template:</p>
<pre><code><template>
<div p-0 m-0>
<div class="scanBreadcrumbs">
<h2 v-show="path">{{ path.join("/") }}</h2>
... | 3 | 1,247 |
OpenQA.Selenium.NoSuchElementException : no such element | <p>I am trying to automate a test case through Specflow, by using the Gherkin format, but I keep having the same error:</p>
<blockquote>
<p>OpenQA.Selenium.NoSuchElementException : no such element: Unable to locate element: {"method":"css selector","selector":"*[name="customer_fi... | 3 | 2,425 |
Android UI issue - Bottom button scrolls up above the keyboard | <p>I'm facing a problem with android UI, that when keyboard appears the button in the bottom also pops-up above the keyboard. I would like to scroll the edittext(only edittext) when keyboard appears. Here is my xml code, Could any one please help me?
I already tried with adjustPan - it scrolls the toolbar along with th... | 3 | 1,511 |
django-autocomplete-light with gm2m in modals bootstrap: the select not showing in template | <p>i I'm trying to get autocomplete-light with Gm2m , But autocomplete.GM2MQuerySetSequenceField doesn't shows all choices.</p>
<p>View.py</p>
<pre><code>class RessourceAutocompleteView(Select2QuerySetSequenceView):
def get_queryset(self):
employees = Employees.objects.all()
freecontracts = Frecontra... | 3 | 1,728 |
Setting up multiple parameter sets | <p>I am working on a function that contains multiple parameter sets with some being mandatory.</p>
<p>i want the sets to be setup in a particular way but no combination I setup seems to be working correctly.</p>
<p>Function Requirements:</p>
<ul>
<li>Function can use either <code>$OrganizationName</code>, <code>$IsU... | 3 | 1,161 |
Mapping data from one page to another on reactjs | <p>I have 2 pages.
1st page: to view all the data from a database from API (code below)
2nd page: to add in new data to the previously stored data in the database</p>
<pre><code>render() {
const obj = (this.state.message);
const datamapping = Object.entries(obj);
return (
<div>... | 3 | 2,078 |
WordPress Comments not showing up, am I using the right code? | <p>I'm trying to add comments to my custom post types, and I don't want to use the:</p>
<pre><code><?php wp_list_comments();?>
</code></pre>
<p>As I want to display the comment form to the left, and the comments to the right.</p>
<p>I've added this code:</p>
<pre><code> <div class="comments">
... | 3 | 1,437 |
Different FlatList on bigger screen | <p>I want to have this same style FlatList on small and big device.</p>
<p>In smaller screen I have perfectly white color between a item within this List, but on the bigger device, I don't see this white color. </p>
<p>How to fix it ?</p>
<p>my FlatList</p>
<pre><code>const placeList = props => {
return (
... | 3 | 1,091 |
I want email address from 2nd ViewController to be used for mail.setToRecipients([myTextField.text ?? ""]) | <p>I have 2 ViewControllers, the second one has a textField which the user can set their default email address in, so they do not have to input it every time the app is to send off an email.</p>
<p>The button to send email is on the first ViewController.
After entering comments, details etc, they hit the "send" email ... | 3 | 4,315 |
webpack jquery plugin perfect-tooltip | <p>I'm trying to load the perfect-tooltip jquery plugin (<a href="http://tborychowski.github.io/perfecttooltip/" rel="nofollow noreferrer">http://tborychowski.github.io/perfecttooltip/</a>) using webpack.
I successfully loaded other jquery plugins like: typed.js and backstretch by following the instructions provided he... | 3 | 1,482 |
App is crashing when i try to implement onClickListener | <p>Im making ViewPager with buttons.
Im trying to get the id of button and set onclicklistener to that button in viewpager class.</p>
<p>I have one problem.
I tried something like this ` </p>
<pre><code>Button btn1 = (Button) findViewById(R.id.gimnazijablbtn1);
btn1.setOnClickListener(new View.OnClickListener() {
... | 3 | 4,659 |
highcharts categories display in PDF | <p>I want to display all the categories on downloaded PDF. But, i am not able to see the all the categories in my current downloaded PDF. Can i achieve this?</p>
<p>Here is the fiddle <a href="http://jsfiddle.net/manraj/7racxxu0/10" rel="nofollow">http://jsfiddle.net/manraj/7racxxu0/10</a></p>
<pre><code>$(function ... | 3 | 1,708 |
Build a JSON with multiple arrays in Python | <p>im calling an API in Python and get a JSON response. Im filtering that response for the values I need. Then I want to make a JSON from that values again and print it.</p>
<p>Here's my code:</p>
<pre><code>import requests
import json
url = "https://my.api"
payload={}
headers = {
'Cookie': 'PVEAuthCookie=... | 3 | 1,902 |
move 4 columns to one column, sort only index, not value | <p>I have OHLC dataseries, and I'd like to move to 'one' column series to sorting OHLC also.</p>
<p>Datas:</p>
<pre><code> Time Open High Low Close Volume
0 2022-04-30 13:05:00 38580.46 38610.44 38580.46 38610.44 33.14334
1 2022-04-30 13:06:00 38610.43 38610.44 38600.00 3... | 3 | 1,439 |
How to join transactional data with customer data tables and perform case-based operations in SQL | <p>I'm trying to perform a query between two different tables and come up with a case by case scenario, coming up with a list of records of calls for a specific month.</p>
<p>Here are my tables:</p>
<p><strong>Customer table:</strong></p>
<pre><code>+----+----------------+------------+
| id | name | numb... | 3 | 2,145 |
Sortable sorting item from one sortable to another not working | <p>I trying to move item from one <code>Sortable</code> list to other one but item is not move cause of parent scroll.
Below snippet example of my code.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js p... | 3 | 1,231 |
Javascript two submit buttons in one form almost complete | <p>I have a form with two submit buttons with onClick events attached. The form action is a paypal form.</p>
<p>If make a payment button is pressed the form is emailed and then redirects to paypal for payment.</p>
<p>If the invoice button is pressed an email is sent with the form details but the default action of red... | 3 | 2,579 |
react router: pressing back button does not bring user back to previous page | <p>I'm working on an app with web socket io and have run into a strange issue. I have a simple app:</p>
<pre><code>import { SocketIOClient } from './containers/SocketIOClient.js';
import { Home } from './screens/Home.js';
import { Game } from './screens/Game.js';
import { BrowserRouter, Routes, Route } from 'react-rout... | 3 | 1,572 |
Loop through $_POST array isn't working | <p>I have a php function that is supposed to loop through an array of $_POST data containing record ids, but for the life of me I can't figure out why it isn't working. I have similar functionality elsewhere in my site, but this particular one want to be difficult:</p>
<pre><code>if (isset($_POST['classNumberAdd']) &a... | 3 | 1,272 |
Django passing user ID to filter models | <p>I have trying to filter objects in a model to avoid people putting events in their calendars which over lap. I found the below link which helped (<a href="https://stackoverflow.com/questions/13026689/django-form-field-clean-to-check-if-entered-date-is-in-a-stored-range">Django form field clean to check if entered da... | 3 | 1,107 |
Lost Connection to "X's iPhones" while capturing photo from back camera on Xcode 8.3 and iOS 10.3.2 | <p>in my application there is a facility of capturing photo from both front and rare camera. Both the camera work properly on <strong>ios 10.2.1 & less</strong> but if I run the application on <strong>iOS 10.3.2</strong> and capturing photo from front camera everything work perfectly but while I try to capture pho... | 3 | 2,378 |
WSO2 API Manager 1.10 redirect to carbon or publisher | <p>I have 2 stores nodes, 2 publisher nodes, 2 gateway workers, 1 Gateway Manager. The workers nodes and Gateway Manager uses a SVN Deployment Synchronizer. All machine has a apache doing a reverse proxy. I added a CA certificate using [1], except creating a own key store.</p>
<p>When I publish a api at Publisher node ... | 3 | 1,775 |
jQuery live filtering, how do I return entire rows when matched? | <p>I'm using the jQuery live filter plugin to make an instant search over a entire table. The plugin works fine but it filters by cell and I'd like to search for an entire row (tr) match instead of just a cell.</p>
<p>HTML:</p>
<pre><code><h2 class="sub-header">List of Enabled Alarms</h2>
<... | 3 | 1,528 |
openning pdf file in android from server gives me this error document is empty | <p>when I click button download, pdf opens but gives me this message document is empty 0ko plz if you any suggessions,I use my phone, and I send the acrobat reader adobe file in my phone and i have adobe acrobat in my phone..</p>
<p>this Mainactivity.java</p>
<pre><code> package com.example.down1;
import java.io... | 3 | 1,626 |
php memory error in depenency injection | <p>I would have used google but I'm going out and hope u guys can help me with a solution or tell me what I'm doing wrong by the time I get back.</p>
<p>I passed in an instance of my factory to my controller and based on something I want to use the factory to begin another instance of a controller that is related to t... | 3 | 1,939 |
JQuery: limit appendChild | <p>I'm trying to limit appendChild when calling a certain image, here's how the flow goes</p>
<p><strong>USER's INPUT(label):</strong> Albania</p>
<p><strong>Display(buttton):</strong> click</p>
<p><strong>OUTPUT:</strong> Image that is limited to one </p>
<p>In my Javascript code its working without any problems t... | 3 | 3,129 |
spec working in jolt-demo site but not working in java | <p>I am facing a strange issue, the spec I created is working on jolt-demo website but it's not transforming the correct result when I use it in java, please suggest, below are the details:</p>
<p><br><strong>Input JSON:</strong></p>
<pre><code>{"lastModifiedDateTime":1641444430000,"leadId":1167,&qu... | 3 | 4,904 |
python/numpy: vectorize nested for loops | <p>I have been trying to shrug off my FORTRAN sensibilities over the last few days and embrace python's vecotrization to get rid of as many loops as possible and optimise my code.</p>
<p>A number of posts on this site have been incredibly useful in achieving this, but I have hit a problem I’m not sure how to solve.</p... | 3 | 3,629 |
Getting EXC_BAD_ACCESS error (code = 1) when posting a notification with Notification Center | <p>I have a view controller with this method:</p>
<pre><code>- (void)getImages
{
if (self.myEntities != nil) {
if (self.myEntities.count > 0) {
if (self.imagesDownloader == nil) {
self.imagesDownloader = [[ImagesDownloader alloc] initWithListener];
}
}
for (MyEnti... | 3 | 1,229 |
Pandas multiindex filter if duplicated, but keep first duplicated | <p>Assume I have a multiindex Pandas data frame with three indices (Date, Product, Country)</p>
<pre><code>arrays = [['2021-12-30', '2021-12-30', '2021-12-30', '2021-12-31', '2021-12-31', '2021-12-31', '2022-01-01', '2022-01-01', '2022-01-02', '2022-01-02' ],
['A', 'A', 'B', 'A', 'A', 'B', 'B', 'B', 'B', 'B']... | 3 | 1,055 |
Use href or sref according to the location path in angularjs | <p>I have a modularized AngularJS1.5 application, what I mean by modularized is that it used to be a monolithic frontend and I have split it in different applications each one of them running in Kubernetes.</p>
<p>Since now it has been split, all of the applications share the common and core modules that I've packed i... | 3 | 1,645 |
How to get an email of user using php facebook sdk | <p>i am doing login with facebook using php facebook graph api,here after login with facebook I got details of user like name,id,location,link. etc. But I can not get Email Id of user. I refer lots of examples like this but I cannot understand how to do this in my code.</p>
<p>Here is my code:</p>
<p><div class="snip... | 3 | 1,204 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.