title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Long response time from Amazon's S3 bucket | <p>I've started experiencing an unusual long response time (<strong>15s</strong>) for images in Amazon's S3 buckets. Most of the time is spent on <strong>waiting</strong>.</p>
<p>I run on <strong>Heroku</strong>.</p>
<p>This is the result of <strong>Apache benchmark</strong>:</p>
<pre><code>Server Software: A... | 2 | 1,052 |
rerender component when tab is choosed react-native | <p>I'm using TabNavigator from react-navigation to navigate through 3 component. My TabNavigator component look like this:</p>
<pre><code>import routeOnMap from '../screens/routsOnMap.js';
import meditatinWalk from '../screens/meditationWalk.js';
import newWordToWalkOn from '../screens/newWordToWalkOn.js';
import * as... | 2 | 1,060 |
Android SQLite not working in separate classes | <p>I have a <code>SQLite</code> database setup for my android application and I have it working in one class where I can write information into the database. My long term plan is to allow me to have on database seup and have different classes access and updating the information the database is set up with these classes... | 2 | 2,055 |
File structure for organizing hierarchical classes in python | <p>I'm trying to organize some hierarchical classes in python with an eye to reusing the subclasses elsewhere---but still with one canonical representation. I understand this is part of what subclassing and inheritance are for, but I'm getting tripped up in actual file and directory organization as much as anything.</... | 2 | 1,124 |
How to render a choice field in a template | <p>I use Symfony2 and twig as template engine. </p>
<p>In my controller I have the following form:</p>
<pre><code> $usr= $this->get('security.context')->getToken()->getUser();
$associatedmissions = array($usr->getMissions());
$form = $this->createFormBuilder($product)
... | 2 | 1,188 |
Yahoo Finance Python API JSON error? | <p>I have been trying to use the Yahoo Finance Python API to get historical prices but I every time I try to run my code, I get the same error. Here is my code and the error:</p>
<p>The Python Code</p>
<pre><code>from yahoo_finance import Share
name = Share('YHOO')
temp = (name.get_historical('2014-04-25','2015-04... | 2 | 2,700 |
Robolectric start a fragment that has an observer | <p>How to start a fragment with a LiveData observer in the test scope with Robolectric</p>
<p>Fragment</p>
<pre><code>class MyFragment(private val viewModel: MyViewModel) : Fragment() {
...
fun myObserver {
...
// If I remove this observer the test will pass.
viewModel.MyLiveData.obs... | 2 | 1,164 |
An entity object cannot be referenced by multiple instances of IEntityChangeTracker error | <p>I understand there are a lot of duplicates to this question, but I couldn't find one that fits my scenario.</p>
<p>So I am using the ASP.NET MVC 4 + Entity Framework + Ninject using repository pattern (I see many mentions of repository + unit of work pattern? That could be a potential fix to my problem but I don't ... | 2 | 1,690 |
Jquery Not working on the second page of the datatable | <blockquote>
<p>This is the html for the question, issue is basically when i click on the userimage class on the first page of the datatable then it works fine but when i click on the second page of the datatable then the even is not fired.</p>
</blockquote>
<pre><code><table class="table" id="example1">
<... | 2 | 1,490 |
Is my WaveMaker project corrupt? | <p>I can no longer test run or deploy my WaveMaker app. I've tried deleting and re-importing the data model, I've tried exporting to a new project, I've tried manually removing suspect files to see if they regenerate fresh. Nothing works. This all seemed to happen after I tried fiddling with the <a href="http://dev.wav... | 2 | 1,661 |
How to use awk to insert multiple lines after first match of a pattern, in multiple files | <p>I have a directory containing many subdirectories, each containing a <code>config.xml</code> file I want to edit. Like:</p>
<pre><code>../jobs/foo_bar-v1.2_west/config.xml
../jobs/foo_bar-v1.3_west/config.xml
../jobs/foo_stuff-v1.3_east/config.xml
../jobs/foo_foo-v9.8_north/config.xml
../jobs/NOT_FOO-v0.1_whatev/co... | 2 | 1,262 |
Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect | <p>I am trying to run integration test for my project and I am using <code>Apache Derby</code> for that. My main classes look like </p>
<p><strong>integration/pom.xml</strong></p>
<pre><code> <plugins>
<plugin>
<groupId>org.carlspring.maven</groupId>
... | 2 | 14,673 |
How to inline two image Divs inside a Div? | <p>I am struggling to place both divs inline by each other, any suggestions people? Everything I am trying within CSS is not working like Float(img-1): Left and Float (img-2): Right, display: inline-block etc.</p>
<pre><code><div class="multimedia-img">
<div class="img-1">
<a href="https://www.... | 2 | 1,122 |
Undefined variable not allowing me to insert file into database table column | <p>I'm uploading audio files into a directory and storing the file name info in database. I have done this successfully.</p>
<p>Next I wanted to create a default image for each audio file, by use PHP to add the audio files Title to the image and then tack on a unique id to the file name. I have done this successfully.... | 2 | 4,871 |
Very strange linker errors using matplotlib-cpp, how to even fix it? | <p>I'm working on C++ project for university (I can't choose Python, my professor decided like so) and I need to use matplotlib-cpp (<a href="https://github.com/lava/matplotlib-cpp" rel="nofollow noreferrer">https://github.com/lava/matplotlib-cpp</a>), I have a macBook with High Sierra 10.13.6 freshly installed and Xco... | 2 | 3,292 |
Compile error when specifying prefixes with Flex and Bison | <p>I am trying to compile a simple bison parser using a given prefix - as was resolved <a href="https://stackoverflow.com/questions/1634704/multiple-flex-bison-parsers">in this question</a>. I'm using Bison version 2.4.1 and flex version 2.5.35 (I can't use bison 2.6). I have been running into a compiler error that has... | 2 | 1,590 |
Restricting panning and zooming | <p>Hi Iβm trying to create an application where you can zoom and pan around a campus site map. I have that working but have run into problems restricting how much you can pan and zoom.I need help setting panning and zooming boundaries.<br>
Any help would be greatly appreciated,</p>
<p>Thanks in advance<br>
Hereβs the ... | 2 | 2,034 |
MessageBodyProviderNotFoundException when updating Jersey to 2.22.2 | <p>I have a working app with Jersey 2.8, that I'm trying to upgrade to 2.22.2. But when I do that, Jersey keeps throwing these exceptions:</p>
<pre><code>org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/json, type=class java.util.ArrayLi... | 2 | 1,368 |
How to generate a transparent PNG image with LibGDX? | <p>There's an entity of my LibGDX game I would like to render to a PNG. So I made a small tool that is a LibGDX app to display that entity and it takes a screenshot on F5. The goal of that app is only to generate the PNG.</p>
<pre><code>camera.update();
Gdx.gl.glClearColor(0, 0, 0, 0);
Gdx.gl.glClear(GL_COLOR_BUFFER_... | 2 | 1,046 |
Java - Using HttpURLConnection to make POST request and send image to server | <p>I'm working on a team software project that involves designing a client for a server-based AI called SeeFood. You can send it a picture, and it will tell you whether or not the picture has food in it. We currently have a python script deployed to the server that accepts Http POST requests and calls the AI with an im... | 2 | 3,863 |
Why does my Play framework model save to the database as a blank record? | <p>I am fairly new to Java and working on a web-based project using the Play framework. It's been a great learning experience and I've been able to find solutions to most of problems, but I'm stuck on saving a model to the database.</p>
<p>I am using framework version 2.3.4 with a postgresql database running locally. ... | 2 | 1,292 |
disable select form if radio is checked | <p>How can I disable a select form dropdown if a radio button is selected? </p>
<p>I would like the #preference form to be disabled if the user selects the #no radio button and it to be enabled again if the user selects #yes or #maybe. </p>
<p>This is my form code - </p>
<pre><code><form name="xmas" id="xmas" act... | 2 | 1,082 |
Fetch Specific key value pairs from mongodb collection with golang | <p>I want to fetch specific key value pairs from mongodb collection with golang dynamically.</p>
<pre><code>err := collection.Find(operations).Limit(2).All(&products)
</code></pre>
<p>How I can do it but it must be dynamically, because the select key value pairs are changing on my side:</p>
<p>Collection documen... | 2 | 2,264 |
android shared preferences implementation | <p>hi i have tried to implement a shared preference and everything i try doesn't seem to work. i'm wanting when someone clicks on an item in a list view it stores data about that selection in a shared prerference. when the app loads up i want it to check for a shared preference ie: if there are no preferences go to thi... | 2 | 1,302 |
Cannot set attribute of hidden or display none form input | <p>I have a table of link buttons and on click I open a Bootstrap modal. I am able to pass data to the modal based on the row clicked using .html() for a specific element class or id but I cannot set the value or data-id attribute of a hidden input field or button. I am however able to set the value of a regular text i... | 2 | 1,301 |
Simple Selenium Test Gives XHR ERROR : 404 | <p>I'm using selenium-rc with C# to test my asp.net mvc2 application. Currently all I am doing is opening the home page with selenium RC.</p>
<p>when I run my test I see the selenium remote control open in a browser and I see my application open correctly in a browser but selenium shows a 404 error and aborts the test... | 2 | 1,581 |
Making a dot in the center of a bitmap C# | <p>I have tried looking for this but I can't seem to find any code to work with a bitmap or a png. I am doing some calculations to find the center of a cluster of black points from a binarized image. I want to know if the center is correct by drawing a red dot at the center points. All the graphics methods I used draw ... | 2 | 2,550 |
Cannot read property 'on' of undefined : Error in Keystone.js | <p>I have been following the tutorial at <a href="https://leanpub.com/keystonejs/read" rel="nofollow noreferrer">https://leanpub.com/keystonejs/read</a> and trying to set up a basic website.</p>
<p>For this wanted to build a route for <code>/</code> with a view file <code>index.js</code> and template at `index.twig'</... | 2 | 2,171 |
Call Context function in helper function - React | <p>Most of my project is built with React class components so I am looking for a solution that won't require me to refactor my class components to functional components. The problem I am having is that I have a file with some helper functions that enable calling an API. In that helper file, I also want to handle errors... | 2 | 1,294 |
Passing bundle from ListView to Adapter, Android | <p>I have a listview of locations, from which I want users to select from.</p>
<p>After they select an item, I want the app to return specific entries based on that location..because I want to display a set of information in the ListView, I am using an Adapter; in the Result List, I am setting up to pass the array as ... | 2 | 2,203 |
Can't install Laravel from my source vendor/autoload.php is not generated for some reason | <p>I want to create another environment of my project so i decided to do it via source control and not just copy paste of the source files.</p>
<p>So what i did is <code>git clone...</code><br>
cd to the app folder<br>
run <code>composer install</code> </p>
<p>the install threw an exception:
<code>
[RuntimeExceptio... | 2 | 1,031 |
How to use this api to return the temperature? With JavaScript? | <p>Hi I was given this code and want to build upon it so that the temperature is also returned.</p>
<p>I am using OpenWeatherMap API. Here is the code that I need to pull the information from </p>
<pre><code>{
"coord":{
"lon":98.86,
"lat":55.08
},
"weather":[
{
"id":801,
... | 2 | 1,058 |
Indexing on Amazon Elasticsearch Service - Bulk Insert | <p>I have an Amazon Elasticsearch instance which is active, and I'm able to connect and execute statements through 'Sense' from Chrome. But when I try to do bulk inserts, it shows 'timeout' error. I've been trying through both Python (bulk helper) and logstash module, getting the same error both ways.</p>
<p>Below is ... | 2 | 2,563 |
Returning single integer value from thread | <p>I need help returning integer value from thread. I have tried several things and can't get it to work. I am new to C and yes this is homework, but I am stuck and need some help on this. I have created the pointer in the thread but when I pass it back to main, it does not show the right value. I have tried malloc... | 2 | 1,061 |
Invalid URL message when uploading an image file using urllib2 | <p>I am trying to upload an image file to piczasso.com from python. My code is as follows:</p>
<pre><code>import urllib,urllib2
url='http://piczasso.com/api_handler.php'
values = { 'data':open('./imagefile.jpg'),
'tags':'',
'size':'None'
}
data = urllib.urlencode(values)
req = urllib2.Request(u... | 2 | 2,129 |
mysqli display data based on row ID value | <p>I need to display an text in an row, based on an value from other table, I will explain... step by step to be all very CLEAR.</p>
<p>The table called "links" have an row called "title_id"</p>
<p>This row "title_id" from "links", have THE SAME value in other table called "titles" in the row named "id".</p>
<p>The ... | 2 | 1,220 |
Register-ScheduledJob "completed" but not "running" script as intended | <h1>Background</h1>
<p>I have a powershell script that is designed to watch a folder for new files using Register-ObjectEvent.</p>
<p>I can get it to run in ISE and PowerShell console just fine. It works exactly as intended. It watches the folder and does its job.</p>
<h2>The Script That is Scheduled with Register... | 2 | 1,419 |
Is there a way to force geom_tile heatmap cells to be a specific size when generating a grid of heatmaps (using facet_wrap)? | <p>In my Shiny data quality assessment application, users upload datasets and can generate reports using RMarkdown. One of those reports is a visual summary of the dataset, rating each variable of the dataset on three metrics: % Compliance (how well the data match the data model), % Logic (is death date after birth dat... | 2 | 1,222 |
How to override js functions in odoo 8? | <p>want to customize IM chat button in odoo 8. i want to make it invisible for others except one group so i have inherited js file into my module. original file is im_chat.js file.</p>
<pre><code>if(openerp.web && openerp.web.UserMenu) {
openerp.web.UserMenu.include({
do_update: function(){
... | 2 | 1,264 |
C# Lottery Compare Results | <p>I'm new to C# we have an activity to create a lottery game.</p>
<p>1 matching number won $10
2 matching number won $100
3 matching number not in order $1,000
3 matching number in order won $10,000</p>
<p>I'm having issues with my code even there are 2 matching or 3 matching number it always display $10. Any help w... | 2 | 1,823 |
MockMvc and Mockito - java.lang.AssertionError: JSON path "$" Expected: a collection with size <2> but: collection size was <0> | <p>I have no idea why I am getting this error here. Any thoughts? </p>
<p>Here is my repository code</p>
<pre><code>package movieweb.movies.repository;
import movieweb.movies.models.Movies;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
publi... | 2 | 2,484 |
Facebook 3.0 How to post wall? | <p>So the new facebook 3.0 <a href="https://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/" rel="nofollow">offers good guides for how to post on wall</a>. But what do you do when it doesn't fly?</p>
<p>I get following response from facebook:</p>
<pre><code>{Response: responseCode: 400, graphObje... | 2 | 1,485 |
PHP Removing empty items from object | <p>I have the following object, here printed as an array. This object is built from a SOAP request.</p>
<pre><code>AdminInfo Object (
[Supplier] => Supplier Object (
[Party] => Party Object (
[OrgInfo] => OrgInfo Object (
[CompanyName] => Bobs
[IDInfo] => Ar... | 2 | 6,753 |
Unable to install request package for python 3 | <p>The message that I get when typing
"pip3 install request": </p>
<pre><code>Collecting request
Collecting setupfiles (from request)
Collecting post (from request)
Collecting get (from request)
Collecting query-string (from get->request)
Collecting public (from query-string->get->request)
Installing collecte... | 2 | 1,332 |
Angular : Navbar Toggle button not working in mobile view | <p>Dropdowns are working fine in web mode but not the navbar toggle in small screen / mobile mode.</p>
<p>This is my code which I copied from codepen to learn. I have installed all necessary packages in VS code for the project but still not able to track down the error.</p>
<p>I have added my code.</p>
<p>Index.html</p... | 2 | 8,525 |
Can't resolve JSONException Android Studio | <p>I don't know what's going wrong with my <strong>JSONData</strong>, but my code catch <strong>JSONException</strong>, maybe it's invalid value ...? My url with json data is : <a href="http://www.bundoransurfco.com/events/?json=1" rel="nofollow">this website</a> . I already used <strong>Json</strong> with this website... | 2 | 6,418 |
Width of the tables inside an inline-block element | <p>I have two inline-block elements(width: 50%) inside a div(width:100%).
inside the first inline-block element i have table with many columns. This table is not rendered in its given 50% width. (It comes under the second inline-block element.)</p>
<pre><code><style>
#col1 {
display: inline-block;
backgr... | 2 | 1,620 |
403 CalDAV error: valid-calendar-object-resource | <p>I'm attempting to create a new event in an iCloud calendar. I'm getting a <code>valid-calendar-object-resource</code> error, which according to the <a href="https://www.rfc-editor.org/rfc/rfc4791#section-5.3.2.1" rel="nofollow noreferrer">spec</a> says my <code>PUT</code> request doesn't meet <a href="https://www.rf... | 2 | 2,085 |
Mapper.Map<Task<IEnumerable<Address>>, Task<IEnumerable<AddressView>>() | <p>.NET Framework 4.5.2, .Asp.NET Web API 5.2.3, AutoMapper 5.1.1</p>
<p>I have the following ASP.NET MVC WebApi Action Method on the AddressController. For my test I return only 10 records as you can see in service method below:</p>
<pre><code>[Route("api/Address/GetAllAsync")]
[HttpGet]
public async Task<IEnumer... | 2 | 1,056 |
Windows Form Application-Can't Edit Source in C# Project and after deleting code there is no effect in Application.Why? | <pre><code>using System;
//using System.ComponentModel;
using System.Drawing;
using System.Drawing.Text;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using Notepad_X.Classes;
namespace Notepad_X
{
public partial class About : Form
{
Main main;
//Effect variables
int currentGradientShift = 10... | 2 | 1,716 |
Pytorch mixed precision causing discriminator loss to go to NaN in WGAN-GP | <p>I'm going to preface this by saying I don't have a lot of experience with neural networks - less so with Pytorch in general. I'm trying to implement mixed precision in a WGAN-GP implementation (not mine) so that I can save GPU memory and train a bit faster.</p>
<p>I got the code from <a href="https://github.com/alad... | 2 | 2,623 |
How to update the spinner in android using Sqlite Database? | <p>I am using this follwing code .</p>
<pre><code>nextButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String name=nameEdit.getText().toString();
String contactnumber=numberEdit.getText().toString();
Stri... | 2 | 2,782 |
writing url to form input value | <p><strong>Problem:</strong> I don't know why my script is not loading a value into the selected input section of a form</p>
<p><strong>Scenario:</strong>
The page, call it the host page, permanently displays a dialog with a link as the content. If a user clicks on the link another dialog, call it the "form dialog" op... | 2 | 4,802 |
Expandable Navigation Drawer is not moving | <p>I am very new to action bar sherlock and navigation drawer. I have created a simple navigation drawer. The drawer is open by default whenever the app starts, and there is no way to hide the drawer after interacting with it. <strong>What should I do, if I want the user to open the navigation drawer when he clicks the... | 2 | 5,177 |
WCF: Server responding with Bad Request (400) | <p>My WCF client works OK with WCF server except when making a call to the server trying to pass array of custom objects. When the array is 100 items it works fine, but when number of items is 300 the server throws exception Bad Request (400). So I assume that the key to the solution is in configuration files.</p>
<p>... | 2 | 3,281 |
Enforcing an implicit minimum size on a JDialog? | <h2>Question</h2>
<p>I have an application-modal <code>JDialog</code> which I want to have an enforced minimum size (i.e. the OS prevents the user from making the window any smaller than the minimum size). But the window should still be resizable (i.e. <code>setResizable(false)</code> is not an option). Preferably, ... | 2 | 1,101 |
Show year only once in archives loop | <p>I just started with PHP and mySQL and I'm creating some kind of blog. At time I think it's going well - I just got some trouble with my archives code.</p>
<p>I think the solution will be pretty easy but I'm so blinded that I just can't find the point on my own.</p>
<p>This is my actual code and everything works fi... | 2 | 1,299 |
How to Add Child Record to Existing Parent Record? | <p>I've been googling and scouring Stack Overflow for some sort of hint on this subject but the information is scattered at best.</p>
<p>I'm trying to Create a new Child Record (<code>Comment</code>) and save it to an existing Parent Record (<code>Post</code>). I am using Ember-Model, rather than Ember-Data, but any ... | 2 | 1,639 |
C++ using SetWindowsHookEx only works with strange vcl code added to it. in BCB2009 | <p>I have a strange situation using SetWindowsHookEx</p>
<p>I have a bcb 2009 project with a form and a Memo on it.</p>
<p>in the create we load the Dll and attach the function handler's to both sides.</p>
<p>The idea is that when the key board is hit a message appear in the memo box and when a mouse event happen a... | 2 | 3,711 |
dplyr::starts_with and ends_with not subsetting based on arguments | <p>I want to select a number of variables based on thier names to transform them. The variable names all start with <code>inq</code> and end with <code>7, 8, 10, 13:15</code>. This is not working for me... Apologies if this is obvious, but I cannot get it to work. Am I using the wrong functions, putting my functions an... | 2 | 1,666 |
How to sort the inner array from a multidimensional array in PHP? | <p>I'm getting a multidimensional array named <code>$user_alerts</code> generated from the SQL query. For your reference I'm printing the array here:</p>
<pre><code>Array
(
[154472] => Array
(
[3829802] => Array
(
[34438] => 34438
... | 2 | 3,439 |
Displaying aligned columns in C++ | <p>I am currently doing a project right now where I have to display a range of integers along with 10%, 15%, and 20% discounts for the integers in columns. This is not a problem for me when the numbers have the same amount of character spaces, however this project mixes number such as 5.00 and 10.00. Because 10.00 cont... | 2 | 1,263 |
Why my prev/next buttons doesn't work for this bootstrap carousel? | <p>I'm trying to create a bootstrap carousel for my Home page. My problem is that the Prev/Next buttons doesn't work and the carousel doesn't slide images automatically.</p>
<p>here is my code: </p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ajax.googlea... | 2 | 9,849 |
How to collapse child control in listviewitem UWP | <p>Universal Windows Platform, C#</p>
<p>How can I collapse/expand the child listview of item MainListView listitem from code behind? I have not found anything that works.
I'd like to do this on the SelectionChanged event.</p>
<p>XAML</p>
<pre><code> <ListView x:Name="DestListView" SelectionMode="Single" M... | 2 | 1,994 |
C++ Visual Studio overloaded function error: no instance of overloaded function matches the specified type | <p>CLARIFICATION:</p>
<p>This project is being done in Visual Studio, with an stdafx.h file used.</p>
<p>FText is an alias for string, as established in the file stdafx.h:</p>
<pre><code>#include <string>
using FText = std::string;
using int32 = int;
</code></pre>
<p>stdafx.h is included in the View.cpp clas... | 2 | 1,146 |
Voted perceptron dual form | <p>This is the voted perceptron algorithm:</p>
<pre><code>#this is a pseudo code
#m is the number of examples
initialize k = 0, w1 := 0, c1 := 0
repeat for T epochs:
for i = 1 to i = m (this is one epoch)
if (x[i],y[i]) is classified correctly then
c[k] = c[k] + 1
otherwise:
... | 2 | 1,732 |
Angular 7 RXJS Observables timer interval infinite loop start immediately | <p>I'm trying to make these RXJS observables work properly with Angular 7 but I can't figure out what's wrong.</p>
<p>What I want to do is check is there is verify token state every 10 seconds for auth.</p>
<pre><code>import {Injectable} from '@angular/core';
import {HttpClient, HttpHeaders} from '@angular/common/htt... | 2 | 1,767 |
Unicorn undefined method error in production | <p>I'm running a Ruby on Rails application on Heroku using Rails 4.1.4, Unicorn 4.8.3 and Ruby 2.1.1. I've tried to keep the development and production environments similar. In development, Unicorn runs just fine.</p>
<p>In production I get this in the logs:</p>
<pre><code>Β» 21:54:50.942 2014-08-08 01:54:50.645897+00... | 2 | 1,333 |
Laravel modal form pass input to route as parameter | <p>I have a button that calls a modal form where the user can enter a name. I want the submit button in my modal to take that inputted string and append it as a parameter in a specific route. I can't find an example that shows how to get the modal input value into the route call.</p>
<p><strong>Button code in view:</s... | 2 | 1,696 |
Why this dialog doesn't pop up?(JSF2.0+PRIMEFACES) | <p>I want to make a dialog pop up when i click on a table row, but it doesnt work.(primefaces components p:dataTable and p:dialog) Also it looks like the selectioMode doesnt work correctly. Why is this happening?</p>
<p>The JSF page:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"h... | 2 | 1,244 |
Flutter: Why doesn't this streambuilder work? | <p>So, I have just began working on a flutter project and am quite new to the whole experience. I just managed to integrate firebase firestore into my project by creating a few buttons that update, remove, and add documents. However, I also wanted to add a Streambuilder with the list that is being updated on the same p... | 2 | 1,666 |
Is there a way to using kafka schema registry without magic byte? | <p>I'm trying to make my applications work using the schema registry from confluent but at this point I'm not in total control of the producers, you can even see them as legacy applications that simply are not bound to the confluent products.</p>
<p>I was looking at the confluent information and it seems all the messag... | 2 | 1,415 |
Keep wifi active in foreground service after phone goes to sleep | <p>I want to receive packets from wifi when my phone is locked. The problem is that when I lock my screen, my foreground service stops receiving packets. I'm using Foreground Service like this:</p>
<pre><code>public override StartCommandResult OnStartCommand(Intent intent, StartCommandFlags flags, int startId)
{
v... | 2 | 1,069 |
ASP.NET - jQuery ajax calls queue instead of running concurrently? | <p>I have to do some processing on a file loaded by the user. This process can take a long time based on the number of pages within the file. I am planning on using jQuery UIs progressbar and telling the user how many pages have been processed. However, my progress check does not return until the first ajax call is com... | 2 | 1,057 |
zmq python crashing with multiprocessing.Process but not threading.Thread | <p>I have a program written in Python, which kicks off several C++ binaries as subprocesses. I am using ZMQ to communicate between the two. The python class is broken up such Thread-A pushes data into the ZMQ socket, and then Thread-B pulls data from a different ZMQ socket. So the block diagram of the system can be ... | 2 | 1,188 |
Animate ViewPager to fill screen in Android | <p>So I have a view which looks like this:</p>
<p><img src="https://i.stack.imgur.com/YMHPD.png" alt="enter image description here"></p>
<p>What I am trying to achieve is for the entire view to shift up to hide the big image up top when the user scrolls down on the GridView. Basically, if they want to see more of the... | 2 | 1,807 |
Apple Match-O Linker Error / clang: error: no such file or directory - Xcode 11 | <p>I am working on a React Native application and whenever I try to build the application I am encountering these errors. I know there are many similar questions on this matter but the solutions given there are not working for me.</p>
<pre><code>clang: error: no such file or directory: '/Users/FaisalHussain/Library/De... | 2 | 2,539 |
Django: Model.objects.get fails with ImportError exception | <p>I've model which represents settings in my system and I use it from another part of my application so that import has 3 levels <code>WORKING CODE <- Module <- Model</code></p>
<p>Model <code>Variables</code></p>
<pre>
<code>
from django.db import models
class Variables(models.Model):
key = models.CharF... | 2 | 1,505 |
How to close connection with Rabbit MQ broker using spring-amqp | <p>We have been struggling with this for sometime now. Below is our configuration:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rabbit="http://www.springframework.org/schema/rabbit"... | 2 | 2,436 |
Is it bad practice to filter by ID within the repository pattern | <p>I am using ASP.NET <strong>MVC4</strong> with <strong>Entity Framework 5</strong>.</p>
<p>Essentially every controller action result <strong>filters the db results by the logged in Users' Company ID</strong>. I have just begun implementing a repository pattern to return the models rather than directly filtering the... | 2 | 1,035 |
How can a QR Scanner retrieve data from remote database? | <p>Firstly, I am currently using Android Studio and ZBAR lib to develop a QR Scanner.</p>
<p>1) QR Code will contain the unique id for example the vehicle number.</p>
<p>2) When the QR code are scanned, the result will not only show the vehicle number but also for example name of vehicle, owner of vehicle etc</p>
<p... | 2 | 2,210 |
How to compare String to all elements in an array? | <p>I am looking for a way to compare a string (which in this case will be a line from a text file) to every element in an array and see if there is a match. At a high level overview, I have a string array (about 100 elements) full of strings that are all contained somewhere in the file that need to be deleted. So I a... | 2 | 1,113 |
JWPlayer handle youtube errors | <p>I would like to handle the youtube errors in the JWPlayer, so in case the video doesn't exists or is not available for the country show a message on the player, or with javascript, i am doing something like this...</p>
<pre><code>var options = {
height: 330,
... | 2 | 1,935 |
Call REST service from Apache Camel Blueprint | <p>I want to call external REST service that return a JSON, the REST itself have a basic authentication (which I don't know how to send a basic authentication), I've read some tutorial and also CXFRS component that lead me to this <code>blueprint.xml</code>.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
... | 2 | 1,478 |
How to draw multiple images on canvas and save the canvas as png image | <p>Hello I am trying to draw multiple images on a canvas, and after that save it as png using html2canvas and canvas2image.</p>
<p>The problem is that only the last image is drawn and when I download it isn't downloading with the image.</p>
<p>I am using a for loop to iterate through the images and then get the src v... | 2 | 5,689 |
Performance issue of full calendar when binding calendar events using angular js | <p>How to bind the data to full calendar using angular js i have tried it but I am getting performance issues like events are loading slowly and some buttons are not working</p>
<p>Events are missing when I am seeing previous dates </p>
<p>Here is my code</p>
<pre><code> $scope.InsertBiometricData = function Insert... | 2 | 5,811 |
Retrofit/Jackson error on deserializing | <p>i'm trying to get a JSON from my web service and deserialize to my class UserSync, but i'm getting the following error: </p>
<p><strong>Can not instantiate value of type [simple type, class com.example.breno.teste.model.User] from String value (''); no single-String constructor/factory method
... | 2 | 2,464 |
__init__ method exception - NameError: name 'setShiftNum' is not defined | <p>I'm learning about inheritance and polymorphism at the moment and this code is supposed to test those concepts. When I attempt to instantiate the subclass object the init constructor doesn't recognize the method. Here's the code.</p>
<pre><code>class Employee:
# constructor
def __init__(self, name, empnum)... | 2 | 1,704 |
Acces denied error when trying to save a distribution group | <p>When running the code shown below, I am getting an error that states:</p>
<p>An unhandled exception of type 'System.UnauthorizedAccessException' occurred in<br>
System.DirectoryServices.dll. Additional information: Access is denied.</p>
<p>It happens on this line : <code>Group.Save();</code> </p>
<p>I have us... | 2 | 1,150 |
Codeigniter Form Validation always returns false | <p>I've spent so much time on this one I think I've gone code-blind. The form validation is always returning FALSE on run and I can't figure out the reason.</p>
<p>The new_map() function displays first the form, on submit of the form (with value set in the map_name field of course), the form validation run returns fal... | 2 | 1,436 |
Deploying USB gadget kernel modules into rootfs with yocto | <p>I'm using the Freescale QorIQ SDK 1.7. I've modified my kernel config 'make menuconfig' to include the USB gadget drivers as a module and to include either Gadget zero or the serial gadget as a module.</p>
<p>I've also compiled the net2280 peripheral device directly into the kernel and it is loading and binding to... | 2 | 1,154 |
How to remove an entire table using javascript? | <p>I have a calendar table, that shows the entire month's date, if user chose to see next month or previous I need to delete the entire table and replace the new table in that same place, at the moment each table is loading underneath the other because I cant get this to work.</p>
<p>I need to remove table from calend... | 2 | 1,456 |
Passing C# array by ref into C++ DLLImport method trims values | <p>I am making a DLL wrapper for some C++ code and have run into an issue. It will be easier for me to illustrate my problem after providing some sample code.</p>
<p>In my C++ application's .h file:</p>
<pre><code>#pragma once
namespace Wrapper {
extern __declspec(dllexport)
void SANDBOX(int arrayLength, int* int... | 2 | 2,261 |
Wordpress intallation on Docker. trying to skip installation page | <p>Running wordpress on docker. Trying to skip install install.php by defining user in compose file. I have already added wordpress user , password and title to skip that page. but not working.</p>
<p>Is there some problem with my code? Is there another way to do it. or help me fix this code.</p>
<pre><code>version: ... | 2 | 1,181 |
How to move marker from one location to another location when we have a list of locations on google map android | <p>i am creating google map with multiple markers.Now i want to move a car icon between that markers.Using this <a href="https://stackoverflow.com/questions/13728041/move-markers-in-google-map-v2-android">Move markers in google map v2 android</a></p>
<p>I can move a car icon between from first point to second point.B... | 2 | 1,314 |
How to execute tests 50/50 parallel in Selenium Grid | <p>I have a selenium Grid 3 Set up.
And right now i have 1 hub + 2 nodes. ( 1 local node, one external node).
When i run my test it executes it on local node ( opens 3 browser).</p>
<p>How and where i should set up test execution? If i want to run all tests on 2 browsers, or if i want to run 50/50 tests on 2 browsers?... | 2 | 2,093 |
asp.net toggle button extender and modal popup extender collision | <p>I am currently moving some form fields on an existing webform into a modal popup window using the asp.net toolkit extender. One of the fields uses the toolkit's toggle button extender on a checkbox a works quite well. When I move the checkbox and extender into the modal popup div, the toggle button extender stops wo... | 2 | 1,102 |
How to find the product and sum of digits of a number in java? | <p>I need to find the sum and the product of the digits of the number entered. I have the sum part down but the only problem with it is that when I enter a number for the first time it gives me the right answer but when I enter another number, it just adds the sum of the first number and the sum of the second number to... | 2 | 1,812 |
Spark History Server very slow when driver running on master node | <p>I'm using Spark 2.4.5 running on AWS EMR 5.30.0 with r5.4xlarge instances (16 vCore, 128 GiB memory, EBS only storage, EBS Storage:256 GiB) : 1 master, 1 core and 30 task.</p>
<p>I launched Spark Thrift Server on the master node and it's the only job that is running on the cluster</p>
<pre><code>sudo /usr/lib/spark/... | 2 | 1,944 |
PyInstaller on mac can't find libpython2.7 | <p>I am trying to make a binary version of a Python script using PyInstaller 2.0. I am using a basic "hello world" tkinter script but imported a few dependencies that i need for a project to test Pyinstaller out. I am on a mac running Yosemite 10.10.5.
This is my script:</p>
<pre><code>#!/usr/bin/env python
from Tkin... | 2 | 1,223 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.