title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Use service to get data with ngrx and @Effect
<p>currently i am trying to integrate the awesome ngrx lib into my project. Everything works as intended expect for the @ngrx/effects lib. What i am trying to do is to get some of my data from a service which will make a http request later on. I know that i am missing something but i can`t find my misunderstanding. May...
2
2,924
Apache HttpClient negotiate handle second 401 response
<p>I am attempting to access an HTTP service that uses <code>WWW-Authenticate: Negotiate</code> for authentication.</p> <p>I am using HttpClient using the example from Apache. I see two requests sent. First an initial request with response 401 and headers indicating that <code>WWW-Authenticate: Negotiate</code> is us...
2
1,244
JavaScript Search Table by Index
<p>I have a table with multiple columns (for this question I only made two columns) and I want the user to be able to search through a column by the index depending on an option that the user can select. I have working code, but in order to change the search option, I had to copy the function for each input. </p> <p>H...
2
1,689
Error when trying to price instrument when using Quantlib
<p>I am receiving the following error when trying to price a 20x10 swap from a bootstrapped curve. The error get thrown on the last line of the <code>ImpliedRate</code> function</p> <blockquote> <p>SwapRatesServiceTests.ImpliedRate_ForTwenty_x_TenYearSwap_ReturnsRate: System.ApplicationException : 2nd leg: empty ...
2
1,281
DevExtream MultiSelect DropDown box Customize the Appearance
<p>In Angular 10 I am using the devExtream multi-select dropdown box now I want to show selected items in customizing like have selected 2 items in the drop-down box so it will show <strong>2 items selected</strong> on the drop-down.</p> <p>The Html part</p> <pre><code>&lt;div class=&quot;dx-field&quot;&gt; &lt;div...
2
1,260
Configuring webpack for node TS with lerna subpackages
<p>I have the following structure (lerna based):</p> <pre><code>app/ packages/ core/ index.ts src/ server.ts node_nodules/ ... express/ auth/ ... </code></pre> <p><strong>index.ts</strong></p> <pre><code>import { Server } from './src/server'; new Server() c...
2
1,520
where to keep global variables and functions in angularjs?
<p>i have some variables &amp; functions in my project that i need in every page. The data in variables are coming from cookies &amp; in functions i am calling some services to get the data.For now i am keeping them in some controller &amp; using $rootScope for global access but this didn't work when i reload the page....
2
2,085
How to change views based on condition
<p>I am new to react native development. In my application I need to change the color of the view based on the condition. So my question is can I use if condition between the views in react native. The following is the code</p> <pre><code>import React, {Component} from 'react'; import {StyleSheet, FlatList, Text, View...
2
2,318
Keycloak infinite sso/login loop after logged in another application
<p>I have a GWT application with a public and a private area which I want to connect to Keycloak 3.4</p> <p>But one scenario is not working. If logging in to another application of the same realm and afterwards opening a new browser tab with <a href="http://localhost:8080/AppName/" rel="nofollow noreferrer">http://loc...
2
1,046
Unable to deploy shared library into IIB integration server
<p>I am trying to deploy a shared library in IIB v10 toolkit integration server which has 1 WSDL created through New->Message Model -> using existing WSDL. It internally imported referencing schema files.B ut while trying to deploy Shared lib project into integration server in toolkit, it's failing with below <strong>...
2
2,840
Defragment Memory Blocks in C Memory Pool
<p>I've built a simple memory pool in C and I've also implemented the ability to implement memory blocks in this pool.</p> <p>The memory blocks themselves are quite simple, just a doubly linked list with a free flag and size property.</p> <p>What I'm trying to do now is create a function that takes a pointer to my me...
2
1,564
React testing library - userEvent upload to input: "cannot find toLowerCase"
<p>So i'm trying to write a simple test where i add a file to an input. Here's the element:</p> <pre><code>&lt;input accept=&quot;image/*&quot; className={classes.newPhotoInput} id=&quot;contained-button-file&quot; type=&quot;file&quot; name=&quot;doc&quot; onChange={setPhoto} /&gt; &lt;label htmlFor=&quot;contained-bu...
2
2,263
Rspec can't run: rescue in connection_for': connection refused: localhost:7475 (Faraday::ConnectionFailed)
<p>I have been neglecting my rspec tests but trying to get back at it and now I can't get basic rspec to run.</p> <pre><code>rescue in connection_for': connection refused: localhost:7475 (Faraday::ConnectionFailed) from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/net-http-persistent-2.9.4/lib/net/ht...
2
3,163
Podman(1): How to route requests between the HOST and PODs attached to a podman network (rootless)
<p>Let me use a real example to aid this question.</p> <p>Using <code>rootless podman(1)</code>, I start a tiny <code>Spark</code> cluster within it's own <code>Pod</code> using the following script, which works well:</p> <pre><code>#! /usr/bin/bash podman network create --subnet 192.168.10.0/24 --gateway 192.168.10.1...
2
1,234
How to insert .erb into a data-target parameter | Ruby on Rails
<p>I have a bootstrap(3.3) collapse used to reply to individual comments in my rails app. The problem with collapse is the <code>data-target</code> and the <code>aria-controls</code> need to be unique for every comment. This is the case due to every comment being left holds the static value set to the first comment (<c...
2
1,557
How MarkerCluster work with MarkerWithlabel
<p>I have markerwith label works fine,but now I want to use markerCluster for tidy purpose. I find a <a href="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/examples.html" rel="nofollow">tut for markerCluster</a> ,but the code doesn't work for me.</p> <p>I just try implement easies...
2
1,529
React hooks updating a parent state from multiple child components
<p>My parent component makes copies of child component onClick. My goal is for every child component, after a user inputs a select value and a textfield value it appends onto the parent component's map value. I used an approach that passes in a function that edits the map object, but after console logging I realize it ...
2
1,038
CPU Higher than expected in Node running in docker
<p>I have a vagrant machine running at 33% CPU on my Mac (10.9.5) when nothing is supposed to be happening. The VM machine is run by Kinematic. Looking inside one of the containers I see 2 node (v0.12.2) processes running at 3-4% CPU each.</p> <pre><code>root@49ab3ab54901:/usr/src# top -bc top - 03:11:59 up 8:31, 0 ...
2
3,400
How to use PHP input array with my dynamic form and PHP emailer script?
<p>i have been struggling for a while now trying to finish this, i am new to a lot of this and although i have had some tips i think i am getting myself more lost. So i have stripped the code to a point where it almost works.</p> <p>DEMO IS HERE: CLOSED</p> <p>I have a form a customer fills out to submit printer mete...
2
2,574
Valgrind on OS X Yosemite, giving bogus errors?
<p>I'm following along in <a href="http://c.learncodethehardway.org/book/" rel="nofollow noreferrer">Learn C The Hard Way</a> and I'm on <a href="http://c.learncodethehardway.org/book/ex4.html" rel="nofollow noreferrer">Exercise 4: Introducing Valgrind</a>. I'm on Mac OS X Yosemite, and as of this writing, there's not ...
2
1,656
Azure Function: Unzip file works in debug but not in production
<p>This is my very first Azure function. I need to unzip a file after it is uploaded on an Azure Storage Blob.<br> I found this video <a href="https://www.youtube.com/watch?v=GRztpy337kU" rel="nofollow noreferrer">https://www.youtube.com/watch?v=GRztpy337kU</a> and this post: <a href="https://msdevzone.wordpress.com/20...
2
1,696
Headless chrome launcher --window-size causing error
<p>I need to be able to take screenshot given a certain window size. I read this blog post on <a href="https://web.archive.org/web/20200220022511/http://phptest.club/t/how-to-run-headless-chrome-in-codeception/1544" rel="nofollow noreferrer">How to run Headless Chrome in Codeception</a> and this page on <a href="https:...
2
1,062
RedHat, which package provides hdf5.h
<p>Using RedHat <code>Linux 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux</code>.</p> <p>I mean to have <code>hdf5.h</code>.</p> <p>In another Ubuntu system <code>Linux 4.4.0-75-generic #96~14.04.1-Ubuntu SMP Thu Apr 20 11:06:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</c...
2
1,245
frida:java.lang.ClassCastException: java.lang.Object[] cannot be cast to android.content.Intent[]
<p>problem java.lang.ClassCastException: java.lang.Object[] cannot be cast to android.content.Intent[]</p> <p>code show as below: frida-js:</p> <pre class="lang-js prettyprint-override"><code>var ProcessManagerG = Java.use('com.xxx.xxx.processManager.g') var doInBackground = ProcessManagerG.doInBackground.overload('[...
2
1,906
Table has no column named [variable]?
<p>I have set up a new table in my database. I have other existing tables that work fine, but this newest one came later and is proving problematic.</p> <p>The table in question is the bar table. I have checked the structure of the database from SQLite Database Browser and I see the column I expected. There appears to...
2
3,046
setting background color of a canvas with image and text
<p>I want to create one canvas element where I want to put an image and some text under the image. This thing is working fine. Now I want to set the background color of the canvas as 'yellow' and text color as 'black'. The text color I can set but I could not able to set the background color of the canvas element. Here...
2
1,640
WPF XAML Datagrid XML File Binding with XElement, XML File Loaded in codebehind
<p>Here we go again kids, yet another camper lost in the woods around WPF Databinding. Its been a fruitful day of climbing the databinding inverted ice wall, but I'm at my wits end with this. No examples I find or amount of SNOOP'ing is helping me find my issue. Hopefully some databinding rock star, all three of you...
2
1,213
Error trying to configure Tomcat Global JNDI ConnectionPool with BoneCP
<p>I have the following files in C:\Tomcat5.5\common\lib</p> <p>activation.jar<br> bonecp-0.7.1.RELEASE.jar<br> commons-el.jar<br> ecj-3.7.2.jar<br> guava-15.0.jar<br> jasper-compiler.jar<br> jasper-runtime.jar<br> jsp-api.jar<br> jtds-1.3.1.jar<br> log4j-1.2.17.jar<br> mail.jar<br> naming-factory-dbcp.jar<br> naming-...
2
1,759
Unable to Install Psutil Linux Bash
<p>I have been trying to install Psutil but consistently facing the following error. I saw that there exist many solutions to this problem using sudo install python3-devel but my server only runs bash commands.</p> <p>Is there a Bash specific solution / command I could use?</p> <pre><code>Failed to build psutil Insta...
2
1,814
Fluent NHibernate Mapping for Table in multiple Many-to-Many Relationships
<p>I'am trying to set Fluent NHibernate mappings for the Database shown below:</p> <pre><code> Campaign Table Id Name Category Table Id Campaign_id Name Customer Table Id Name Phone ... SalesMan Table Id Name Phone ... CustomerSalesManCategory Table Id Customer_id SalesMan_id Category_id </code></pre> <p>The ...
2
1,054
WCF Data Service can't handle UPDATE on feed entries
<p>Me and some buddy of mine are trying to get started with WCF Data Services, so let me first describe what we have done so far:</p> <ol> <li><p>We have created a fairly simple WCF Data Service with a data source that implements the IUpdatable interface and exposes some data through some public IQueryable&lt;> attrib...
2
3,678
Loop through html table using jquery
<p>How can we loop through a dynamically created table in MVC using jquery excluding the header row.</p> <p>requirement:- I have table with two columns "id" and " name" by clicking new i can add new rows and type data. when clicking submit i need to check all row contain data typed or not. If all are filled the form w...
2
1,163
Lumen - How to create a request object that can be accessed by app('request') from a different file?
<p>My lumen application has a common trait that records every add/update/delete activity of every table in the database. This trait is used in a basemodel which is then extended for all applicable table model files like below.</p> <pre><code>namespace App\Models; class BaseModel extends Model { use RecordsActivity...
2
1,132
Static Jquery HTML Menu to Dynamic Wordpress Menu
<p>Firstly, Thank You very much to all who try to help around here, some of the answers have saved me a lot of headache. Secondly, please assume that I have almost no knowledge of any language.</p> <p>I am trying to use <strong>apycom.com/menus/12-forest-green.html</strong> menu as a wordpress dynamic menu using the m...
2
4,511
Problem when linking mysqlcppconn-static using MySQL Connector C++
<p>I am writing about a problem I had during the setup of MySQL Connector C++. I am using the binary distribution of the connector for Linux (Ubuntu 18.04), so I put the library directory outside my project (that is one of the examples given in the reference guide here (<a href="https://dev.mysql.com/doc/connector-cpp/...
2
1,170
jQuery / javaScript - click / onclick event listener not working inside loop despite closure
<p>Me and my loops again... I'm trying to run a <code>for</code> loop across several <code>div</code>s, each being in the class "<code>tooltipBox</code>" but with different <code>id</code>s. In each of these <code>div</code>s is an input text field with class "<code>tttFalloutOrder</code>". What I want to do in the for...
2
2,022
Kafka: Intermittent slowness when consuming first message from topic
<p>I am using Kafka 0.9.0.1.</p> <p>The first time I start up my application it takes 20-30 seconds to retrieve the "latest" message from the topic</p> <p>I've used different Kafka brokers (with different configs) yet I still see this behaviour. There is usually no slowness for subsequent messages.</p> <p>Is this ex...
2
1,157
Google Sheets java sdk oAuth unauthorized after some hours (spring boot)
<p>I successfully created a spring boot Serviceclass in order to write on google sheets, following the <a href="https://developers.google.com/sheets/api/quickstart/java" rel="nofollow noreferrer">Java Quistart Tutorial for Sheets API</a></p> <p>My problem is that the authorization is not renewing, so after the first s...
2
1,959
NPM Angular ERR! peerInvalid / peerDependencies requirements
<p>When running npm install on this package.json</p> <pre><code>{ "author": ", Inc.", "name": "-angular2-template", "version": "0.2.0", "description": "Angular 2 Project Template. Webpack, ES6, Sass, Karma.", "bugs": { "url": "https://dev..net//-angular-template/issues" }, "repository": { "type": "git", "url": "...
2
2,569
Java 8 KeyStore of type PKCS12 returning null for getCertificate()
<p>I have a strange problem. I want to use a Java KeyStore of type PKCS12, however setting the type as such causes getCertificate(...) to return null, where it would return a certificate if the type was set to JKS. Am I missing something that I should be doing for the PKCS12 instance?</p> <pre><code>import java.io.Byt...
2
1,107
how to dynamically edit the bind data in sql using mvc3 web grid
<p>i am new to mvc.. i have a task that, i have to bind data from existing table in sql using asp.net mvc3(Razor) Web Grid .. now i have to edit the data in webGrid.. i dont know how the edit operation is going to made... Plzz Help me out...</p> <p>i have given my bind data.. plz let me know how to edit it...</p> <p...
2
1,496
dc and crossfilter - calculating percentage within records
<p>I'm trying to calculate and plot percentage (%) in one of my dc charts.</p> <p>I have read the API and multiple examples regarding reduce functions (add, remove &amp; init etc) I referred to <a href="http://jsfiddle.net/gordonwoodhull/vct0dzou/8/" rel="nofollow">1st</a> &amp; <a href="https://github.com/dc-js/dc.js...
2
2,116
React Native Redux - How to Update an Item in an Array?
<p>I am a newbie with React Native and Redux, building a quiz app now. </p> <p>I want to update an item (name) in an array. Could somebody let me know what is wrong with my following code:</p> <pre><code>export const setName = name =&gt; ({ type: "ADD_NAME", id: 1, name: name }); INITIAL_STATE = [ { id: ...
2
1,396
Autosizing Cells in UICollectionView (all in code)
<p>Using Swift-5.0, Xcode-10.2, iOS-12.2,</p> <p>There is an issue in my code while trying to achieve "autosizing" of cells in a UICollectionView (using UICollectionViewFlowLayout as its layout).</p> <p>The height of the cell is content-based (and unknown upfront) - therefore I try to get the <strong>cell's height to...
2
4,509
NoSuchBeanDefinitionException: 'cassandraCluster' in spring data cassandra project
<p>I'm developing a spring data cassandra based web application for learning purpose and got stuck with following two exceptions.</p> <p>Exception 1</p> <pre><code>12:18:07.742 [localhost-startStop-1] DEBUG com.datastax.driver.core.Native - Could not load JNR C Library, native system calls through this library will n...
2
12,270
Converting xlsx to pdf using PHPExcel and download that pdf . work Fine on localhost
<p>This code works fine on localhost but on live server it shows</p> <blockquote> <p>File Not Found</p> </blockquote> <p>Check the file name for capitalization or other typing errors. Check to see if the file was moved, renamed or deleted.</p> <p>Here is my code </p> <p><strong>excel.php</strong></p> <pre><code>...
2
2,080
How to make a server wide filter on Tomcat?
<p>At work, we've inherited this Java class which handles all SSO login operations. There's a FiltroSegurancaGlobal.class which is mapped to *, forcing everything with a annotation </p> <pre><code>@WebFilter(urlPatterns = { "/*" }) </code></pre> <p>The class is deployed in a JAR with a few other classes to handle the...
2
1,163
Bold Text Output in Loop with \\newpage in printr
<p>I'm trying to bold the output of names in a loop in my PDF document. It works when I am simply looping, but fails when I introduce <code>\\newpage</code></p> <p>Here is some simple, sample code to produce what I'm talking about.</p> <pre><code>```{r results='asis',echo=FALSE} library(printr) test_group&lt;-c('Bob...
2
1,144
angular-schema-form: Add custom html to form fields
<p>I have just started to look into angular-schema-form, so this might be something I've missed in the docs or description.</p> <p>What I am trying to do is to add an icon next to the label of generated form fields and next to the field itself. Like so:</p> <p><a href="https://i.stack.imgur.com/Fj8XO.png" rel="norefe...
2
1,200
Sorting by eloquent relationship in Laravel using DataTables
<p>I'm trying to use <a href="https://yajrabox.com/docs/laravel-datatables/6.0" rel="nofollow noreferrer">DataTables</a> to display list of Application model. Application model has operations:</p> <pre><code>public function operations(){ return $this-&gt;hasMany('\App\Operation', 'application_id', 'id'); } </code>...
2
1,328
Django static file 404 errors when deployed with mod_wsgi
<p>I am getting 404 errors on all of my static files when I try to deploy them in production</p> <p><a href="http://phaedrus.scss.tcd.ie/bias_experiment/slide_test/" rel="nofollow noreferrer">A live page of the site is available here</a>. Inspecting the page in Chromes Console or Firebug will show the below issues. </...
2
1,932
Camera2Video sample application - crash
<p>I try to start sample Camera2Video. I create new virtual device and use emulated camera with green or red foursquare. Application show preview wirking, but when i press start button - it`s crash with error:</p> <blockquote> <p>E/BufferQueueProducer: [GraphicBufferSource] queueBuffer: BufferQueue has been abando...
2
11,253
GLPK linear programming
<p>I am working on some very large scale linear programming problems. (Matrices are currently roughly 1000x1000 and these are the 'mini' ones.)</p> <p>I thought that I had the program running successfully, only I have realized that I am getting some very unintuitive answers. For example, let's say I were to maximize ...
2
1,431
Android browser (not Chrome, not all versions) has weird problems with z-index, absolute positioning
<p>There are a few bugs I've seen logged about the Android browser and how it deals with absolutely-positioned "shroud" elements commonly used for modal dialogs. <a href="http://jsbin.com/ofigat/3" rel="nofollow">Here is a <strong>jsbin</strong> example.</a>. Clicking the "show" button on a reasonable browser should s...
2
1,173
Creating a sqlGeography LINESTRING using .NET
<p>I am building an application that parses a variety of external map file formats (i.e. ShapeFiles, MapPoint, KML, etc.) and stores the shapes in a centralized database that will be used for a central mapping / reporting base. I have a routine that now has a line represented by an abstract array of points, and I'm att...
2
1,446
Configured nginx as reverse proxy on ports 80 and 443 for webapp running on 8000. How do I disable connections to port 8000?
<p>I configured nginx as a reverse proxy on ports 80 and 443 and had Certbot automatically manage the SSL certificate.</p> <p>The Golang webapp I have is running on port 8000. Anyone can access the web app through the non-https IP address to the web server with port <code>:8000</code>. </p> <p>Besides just blocking a...
2
1,438
how to annotate namespace on Element jaxb xjc ann
<p>I need to create xml document with payments information. There are a few namespaces and it is nessecery to add prefix to each tag. That is my set up:</p> <p>xsd:</p> <pre><code>&lt;xs:complexType name="Document"&gt; &lt;xs:sequence&gt; &lt;xs:element name="FIToFICstmrCdtTrf" type="FIToFICustomerCreditT...
2
3,326
html5 canvas rotate moving bouncing ball
<p>i am having a problem rotating a ball that is bouncing around the screen when i put the rotate method in it just dissapears off the canvas in a very wide rotating arc. It is working when the ball is static but when i put x,y velocity the problem starts. Ant help someone can give me would be greatly appreciated. Plea...
2
1,867
Django : How to show logged in users data from database
<p>I am working on invoice management system having in which user can add invoice data and it will save in database and whenever user logged in the data will appear on home page.but the problem if whenever any user logged in the home page showing other users data also but i want active users data only. could you guys ...
2
2,351
My string is initialized, but still shows up as null (flutter - dart)
<p>I hope you are doing well! </p> <p>I am working on a simple string tutorial with flutter and I ran into this issue regarding strings and the Text widget. I'm trying to create a string variable in my _MyHomePageState class, but my displayTxt is appearing null, even though I set a value to it. I used interpolation to...
2
1,711
greenmail server not receiving the mail
<ul> <li><p>My Unit Test for class for email through Greenmail</p> <p>public class GreenMailTest {</p> <pre><code>private GreenMail greenMail; private EmailServiceImpl emailService = new EmailServiceImpl(); private MessageTemplateService messageTemplateService; private EmailProperties emailProperties; private Pro...
2
1,133
Heroku Memcache issue - Dalli::NetworkError: localhost:11211 is down
<p>I have recently upgraded Rails to 3.2.2 and now I seem to be running into Memcache related issues... can anyone help?</p> <p>My production config:</p> <pre><code>config.serve_static_assets = true config.static_cache_control = "public, max-age=2592000" config.assets.digest = true config.action_controller.perform_ca...
2
1,440
Spring MVC LightAdmin configuration
<p>I'm trying to setup LightAdmin page for my web application, I'm following <a href="https://github.com/la-team/light-admin" rel="nofollow">https://github.com/la-team/light-admin</a>. After following this step a see this error: </p> <pre><code> 14:36:55.705 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanF...
2
5,264
Set Grid background color programmatically in Silverlight
<p>I have a Data template</p> <pre><code>&lt;DataTemplate x:Key="ConnectorItemFactory"&gt; &lt;Button Style="{StaticResource TextOnlyActionTileButtonStyle}" Margin="0,0,5,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch...
2
1,028
Opencv: Get all objects from segmented colorful image
<p>How to get all objects from image i am separating image objects through colors. There are almost 20 colors in following image. I want to extract all colors and their position in a vector(Vec3b and Rect).</p> <p>I'm using egbis algorithum for segmentation </p> <p><img src="https://i.stack.imgur.com/2XL8S.jpg" alt="...
2
1,337
Moose deep coercion - ArrayRef of user-defined types
<p>What am I missing in the following subtype and coercion chain? I'd like to be able to coerce an arrayref of validated types or die from the following inputs:</p> <ul> <li>Coercible string</li> <li>Valid string</li> <li>Arrayref of mixed coercible and valid strings</li> </ul> <p>Assume that all types are fully name...
2
1,852
Electron does not play mp3 audio file using <audio> Html5 tag in Raspberry Pi 3b+
<p><strong>Problem:</strong> I made simple electron project on raspberry-pi, It play an audio file but somehow that cannot play.</p> <p><strong>My Efforts</strong></p> <ol> <li>I tried already lots of other audio files.</li> <li>Removed node_modules, nodejs and npm from my <em>raspberry-pi 3b+</em> device and reinstall...
2
1,075
adding excerpt projection to spring data rest repository causes stack overflow error
<p>We are facing <code>StackoverflowError</code> when we enable an except projection on a REST repository. The entity is question has two associations, a <code>@ManyToOne</code> with one <code>Venue</code> entity that has to be included inline for all responses, and a <code>@OneToMany</code> with <code>Trainee</code> e...
2
1,170
download task is null for the first request when when in backgroundfetch IOS
<p>I was wondering if you have seen this or might have some ideas as to why I see the following behavior in my code: I have an NSURLsession with background config. I initiate periodic download task when the program runs in the Foreground, and everything works. WhenI simulate backgroundfetch (in xcode), my task gets a n...
2
1,355
Django Update and CreateView using the same Crispy Form, Add view Error
<p>I'm using the same crispy form for add and edit and have added a variable to so I can change the submit button text from add to edit and vice versa.</p> <p>However the add view is coming up with the below error:</p> <pre><code>Traceback: (removed the in built references) ... File "/itapp/itapp/sites/views.py" i...
2
2,189
PHP sort array by priority
<p>I need a method that sorts an array of items by priority.</p> <p>Here is what I have working so far:</p> <pre><code>function arraySortPriority(array &amp;$array, $offset, array $priorities) { uasort($array, function ($a, $b) use ($offset, $priorities) { if (!isset($a[$offset])) { $a[$offset...
2
1,290
setCellFactory override updateItem and wrap text
<p>I want the items in my listView to be all capitalized and to have line breaks.</p> <p>I'm using setCellFactory to provide an implementation of Cell.updateItem. This works fine. When I add the workaround for breaking lines in a ListView to my ListCell implementation, only one of the two "features" works. The first c...
2
1,280
Python: Set param for columns and values pypyodbc - executemany
<p>I have this situation where I created a method that will insert rows in database. I provide to that method columns, values and table name.</p> <blockquote> <p>COLUMNS = [['NAME','SURNAME','AGE'],['SURNAME','NAME','AGE']]<br> VALUES = [['John','Doe',56],['Doe','John',56]]<br> TABLE = 'people'</p> </blockquote...
2
1,050
Error: The method 'data' isn't defined for the class 'Object?'
<pre class="lang-none prettyprint-override"><code>Error: The method 'data' isn't defined for the class 'Object?'. - 'Object' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'data'. Map _productMap = productSnap.data.data(); </...
2
4,899
System.Data.Odbc support of SQL Server datetime2, time, date, datetimeoffset types
<p>According to <a href="https://docs.microsoft.com/en-us/sql/relational-databases/native-client-odbc-date-time/data-type-support-for-odbc-date-and-time-improvements" rel="nofollow noreferrer">ODBC documentation</a>, ODBC supports the SQL 2008+ types like <code>datetime2</code>, <code>date</code>, <code>time</code> and...
2
1,915
MySQLi Full Text Search For Multiple Column Category
<p>I want to make mysqli full text search with or without multiple category based on checkbox selection.</p> <p>Search is based on four category within same column.</p> <p>Search category are windows, games, tablet, mobile.</p> <p>When category/multiple category selected through checkbox selection search should be d...
2
1,097
Keeping presentation (HTML) and logic (PHP) separate
<p>I am trying to keep presentation and logic separate without using a template engine like Smarty. What I have so far is working, but I am not sure how to do certain things without putting more PHP into my presentation than I would like to. For example, right now I have something like this:</p> <h1>product_list.php...
2
2,067
Facebook JS SDK: "(#100) No permission to publish the video" error
<p>I'm trying to publish a video file to my Facebook feed</p> <p>My App is in <strong>Development</strong> mode</p> <p>Here is how I init an SDK:</p> <pre><code>$(document).ready(function() { initFacebook(); }); function initFacebook(){ window.fbAsyncInit = function() { FB.init({ appId : '2xxxxx...
2
1,099
Android User input to countdown timer
<p>I'm working on a countdown timer with user input on how many seconds to count down.</p> <pre><code> private void showTimer() { myString = ((EditText)editTextTimer).getText().toString(); int countdownMillis = Integer.parseInt(myString) * 1000; if (timer != null) { timer.cancel();...
2
1,040
Error:Execution failed for task ':app:processDebugManifest'. How to fix?
<p>I'm getting error on Android Studio. Error:Execution failed for task ':app:processDebugManifest'.</p> <blockquote> <p>Manifest merger failed : Attribute application@theme value=(@style/AppTheme.NoActionBar) from AndroidManifest.xml:28:9-52 is also present at [:adgatemediasdk:] AndroidManifest.xml:19:9-40 va...
2
5,480
Change tkinter Label in other class?
<p>Can somebody help me please, I'm making an exercise about class and running task on other thread then tkinter. I want to change the label in another class. Can't get my script to work.</p> <p>I tried different things but I'm having some troubles with understanding the inheriting from classes and the threads, so thi...
2
1,050
Error with Redis Autoconfiguration using Spring Boot 1.3.3 and Spring XD 1.3.1
<p>I'm trying to create a custom Spring XD (v1.3.1) module as well as utilize some of the Spring Boot Starter projects but I am running into an error with Redis.</p> <p>I have a very simple sample project available here: <a href="https://github.com/fgreg/redis-error-example" rel="nofollow">https://github.com/fgreg/red...
2
4,375
Disappearing models in Backbone collection
<p>I've got a Backbone model <code>line</code> that contains a collection of the model <code>Stop</code>. At some point, I want to iterate through the stops in the line and get the total travel time along the line, using the Underscore function <code>reduce</code>.</p> <p>This does not work, however. It seems that som...
2
1,205
ADODB.Connection with Excel to Access database performance improvement
<p>We have created a access database and one developer has created a function into excel to access the data from this database. The connection is done via ADDB.Connection. The formula returns 1 figure which is the sum of volumes in the Access database taking into consideration some of the parameters. When we run the ...
2
1,874
Spring 3 MVC - Model not displaying in JSP Page
<p>On the surface, this question will sound a lot like questions that may have been asked previously on SOF but I tried those answers long ago and no luck. </p> <p>(For example, this question <a href="https://stackoverflow.com/questions/15335383/spring-3-not-rendering-model-in-jsp?rq=1">spring 3 not rendering model in...
2
1,314
transaction isolation level (READ UNCOMMITTED) of Spring Batch
<p>I want to set transaction isolation level to READ UNCOMMITTED, but is doesn't work.</p> <p>Here is my job source.</p> <p>TestJobConfiguration.java</p> <pre class="lang-java prettyprint-override"><code>@Slf4j @Configuration public class TestJobConfiguration { @Autowired private JobBuilderFactory jobBuilder...
2
1,320
ImageView Causing Crash
<p>I am still fairly new to android development so any help is truly appreciated.</p> <p>I have an app that uses the light sensor to read the amount of light and display it on the screen. I am developing it on android studio. Under the title, which is a textView, is an imageView, followed by two more text views. No ma...
2
1,717
ElasticSearch can't automatically recover after a big HEAP utilization
<p>I want to talk about a problem that we are facing with our ES cluster.</p> <p>Today we have four machines in our cluster, each machine has 16GB of RAM (8GB HEAP and 8GB OS). We have a total of 73,975,578 documents, 998 shards and 127 indices. To index our docs we use the bulk API. Today our bulk request is made wit...
2
3,380
curl data array post +multipart/form-data
<p>i got stuck during my project, need bit of your advice to find correct path.</p> <p>here is what i am doing in my php code. 1)my script create account on third party website(i have no control over this website)</p> <p>2)there are 5 forms which i have to submit one by one to create account.</p> <p>3)ii have succes...
2
1,097
Flask sse-stream not terminated after firefox disconnects
<p>I am trying to create a Flask server that streams data to the client using sse. The piece of test-code below seems to do the trick, but I stumbled upon a problem related to handling client disconnects.</p> <p>When using Firefox as the client (versions 28 or 29), data starts streaming as expected. However, when I re...
2
1,118
Textarea maximalsize in Borderlayout
<p>I have a simple problem but I found no good solution for it. I have a <code>JFrame</code> with components at <code>SOUTH</code>, <code>NORTH</code>, <code>EAST</code>, and <code>CENTER</code>. On <code>CENTER</code> is my problem. On center I have a <code>JPanel</code> with a <code>Borderlayout</code> and 2 <code>JT...
2
1,241
strapi FetchError: request to http://localhost:1337/api/events failed, reason: connect ECONNREFUSED ::1:1337
<p>If I use my browser to access localhost:1337/api/events as a PUBLIC (Unauthenticated user) I get the following returned:</p> <pre><code>{&quot;data&quot;:[{&quot;id&quot;:1,&quot;attributes&quot;:{&quot;name&quot;:&quot;Throwback Thursday with DJ Manny Duke&quot;,&quot;slug&quot;:&quot;throwback-thursday-with-dj-man...
2
1,809
Audience Restriction is missing from SAML 2 response
<p>I'm trying to use the Identity Server with ASP.NET (.NET 4.5.1, MVC project) using WIF and WS-Federation. WSO2IS version is 5.0.0</p> <p><em>Disclaimer: I'm new with WSO2IS and ASP.NET too (not with .NET itself) and with the whole identity stuff so perhaps I've omitted something basic.</em></p> <p>The problem is ...
2
7,251
Partial rendering not shown
<p>Rails 3.0.7, Windows 7, NetBeans 6.9.1, JRuby 1.5.1, Ruby 1.8.7</p> <p>I have <code>app/views/browsing/index.rhtml</code> with this relevant part, focus on the <code>render</code> call:</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;th&gt;&lt;em&gt;&lt;%=I18n.t('browsing.actions')%&gt;&lt;/em&gt;&lt;/th&gt; ...
2
1,190
React Node in state keep remember props
<p>I have trouble debugging this code.</p> <p>I have an App component:</p> <pre><code>function App() { const [state, setState] = useState(0); const onSelectItem = () =&gt; { console.log(": onSelectItem -&gt; currentState", state); }; // items is an array of ReactNode: button, when click on it. It will l...
2
1,470
Unable to create an object of type 'ApplicationDbContext'. Ef core 5.0
<p>I using CleanArchitecture solution. I have Data layer where ApplicationDbContext and UnitOfWork are located :</p> <pre><code>namespace Portal.Data.MyDbContexts { internal class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions&lt;ApplicationDbContext&gt; options) : base...
2
6,209
React + Gulp + Babelify
<p>I am trying to convert my working app from React and Gulp with ES5 to React + Gulp and ES6.</p> <p>I only tried to replace reactify with babelify but i am still getting gulp error: Illegal import declaration</p> <p>Here is my gulpfile.js:</p> <pre><code>"use strict"; var gulp = require('gulp'); var conn...
2
1,416
How to get the starting time of an app in android
<p>I create an android application, i have to create a notification about apps running in background with there staring time, i'll successfully get the running apps but cant generate that the app is running from how long time. For example-> Talking Tom is running from last 3 hours etc.</p> <p>public class ListAdapter ...
2
1,302
How can I convert this sorting method to be generic in Java?
<p>This question is kind of long... so bear with me please.</p> <p>I have to convert a SelectionSort method that was covered in my book that was built to sort arrays, and make it generic so that I can enter either doubles or ints into it and have it work.</p> <p>It doesn't seem to allow generic arrays, so I'm attempt...
2
1,381
ajax call to java servlet results in 404
<p>I'm trying to get a web page to send JSON data to a java servlet via a jQuery ajax POST. I've already checked everything I could think of, but I still can't figure out why I keep getting a 404. Even more confusing is that other calls to the same context path work correctly.</p> <p>My web.xml</p> <pre><code>&lt;web...
2
1,425