title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Load scanned QR url into android webview | <p><em><strong></em>**See bottom for the fix to below question**</strong></p>
<p>Ok everything works except for loading the url and when it tries to load the url into the webview it adds url: in front of the hyperlink. For example: url:<a href="http://google.com" rel="nofollow">http://google.com</a> and the webview wo... | 2 | 1,565 |
Not receiving NSNotification | <p>I'm having trouble receiving an <code>NSNotification</code>. I can tell that my network call is effective on the server side, and that the server's response is received at the network layer in my app, but when my network layer class does the final step of sending an <code>NSNotification</code> to the <code>UIViewCon... | 2 | 1,582 |
Uncaught Syntax Error: Unexpected end of input Javascript | <p>I want to learn JavaScript and I tried to created a multiple Ajax uploader. I encountered this error:
In Google Chrome : </p>
<blockquote>
<p>Uncaught SyntaxError: Unexpected end of input,</p>
</blockquote>
<p>In Mozilla Firebug</p>
<blockquote>
<p>SyntaxError: JSON.parse: unexpected end of data at line 1 col... | 2 | 2,999 |
Get-AzureRmAppServicePlan and Get-AzureRmWebApp return exceptions in Runbook | <p>I'd like to get all properties with <code>Get-AzureRm*</code> commands in Automation Runbook, but the followings return exception. How to code so as to work these commands properly?</p>
<ul>
<li>Returns exception
<ul>
<li>Get-AzureRmAppServicePlan</li>
<li>Get-AzureRmWebApp</li>
</ul></li>
<li>Returns expected res... | 2 | 1,158 |
Appbar fitsSystemWindows - Inside a ViewPager | <p>I have an Activity that contains a <code>ViewPager</code>:</p>
<blockquote>
<p><code>activity.xml:</code></p>
<pre><code><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"... | 2 | 1,693 |
Disk Quota exceeded, but have 2.0T of available space in /afs directory | <p>I'm trying to clone and checkout a few git repos via a brew install command, but I keep getting a Disk Quota exceeded error. This is what I get when I run df -h :</p>
<pre><code>Filesystem Size Used Avail Use%
Mounted on
udev 7.8G 4.0K 7.8G 1... | 2 | 1,110 |
PrintDocument over-writes all but last page | <p>The problem I'm having is that while printing a multi-page document, each page will over-strike the other with the exception of the last page. It's almost as if it's not clearing the contents of the page before starting a new one.</p>
<p>I've reduced it to the smallest amount of code and I still can't get it to be... | 2 | 1,945 |
iText7: How to verify signature in detached PKCS7? | <p>I am writing a service that receives PKCS7 data (extracted from signed PDF documents) and needs to verify it. </p>
<p>I am using iText7 PdfPKCS7 for that, but the signature verification always fails. I can read all other information from the PKCS7 (certificates, timestamps etc., I have verified that also with OpenS... | 2 | 2,455 |
Get text from select in HTML using JQUERY | <p>I'm trying to get the value of a selected element and show it at the console. I've searched everything, tried everything and it's not working.
value1 I get it but value2 and 3 not.</p>
<p>If you have any other recommendation (besides using Jquery to do this, please do it)</p>
<p>Check it out</p>
<p><div class="sn... | 2 | 1,201 |
pandas inner join performance issue | <p>I have two csv file and I load them into pandas data frame. One file is large, about 10M rows and 20 columns (all string type) and size is around 1G bytes, the other file is small, about 5k rows, and 5 columns and size is around 1M. I want to do inner join by a single common column between the two data frame.</p>
<... | 2 | 1,165 |
Extending parent state with extra views | <p><strong>Using</strong>: AngularJS and UI-Router. </p>
<p>I am trying to create a page that has two views: <code>menu</code> and <code>main</code>. One is for a menu and the other is for whatever content there may be. However, I do not want to define both views in all states every time. The <code>menu</code> view wi... | 2 | 1,368 |
Return a parameter in Google App Script callback | <p>The following example code successfully performs a callback to the Google App Script:</p>
<pre><code>var SCRIPT_ID = "1eC5VsM2vkJXa9slM40MTKTlfARGAGyK1myMCU3AB_-Ox_jGxQaoPM8P2";
function getURL() { return getCallbackURL('testCallback'); }
function getCallbackURL(callback) {
var state = ScriptApp.newStateToken()... | 2 | 1,043 |
Apache attempting to load from /var/cache for munin | <p>I'm trying to get the Munin webpage working under Apache2 via SSL on Debian Etch. My config for the website is:</p>
<p><strong>NameVirtualHost 1.2.3.4:80</strong></p>
<pre><code><VirtualHost www.mydomain.org:80>
ServerName www.mydomain.org
...
<Directory /var/www/https>
AllowOverride None
Or... | 2 | 1,223 |
Propel ORM - UNION queries | <p>I have looked through related questions on this on the website but none of them really answer my question. I have the following statements in a website using Propel:</p>
<pre><code>$query = $query
->distinct()
->select(Request::getTransferFieldsWithRelations())
->leftJoinResponse("Response")
->j... | 2 | 2,320 |
Python Debugged EXE Output to PYC <class 'ValueError'>; bad marshal data (unknown type code) Error | <p>I am trying to completely de-compile an EXE file I made using <em>Pyinstaller</em>. I am using a tool called <em>pyinstxtractor</em> AKA <em>PyInstallerExtractor</em> to debug the EXE. I am trying to convert the output of the debugger to a PYC file, but when I prepend the magic numbers from a current PYC file within... | 2 | 1,099 |
Echo array inside foreach and if isset but only show one data for each value | <p>So I have this list of array (I changed the values for privacy purpose);</p>
<pre><code>$datalist = array(
1 =>
array(
"12.2.2.2",
"Netherlands 1",
"Hub 1",
"Password",
"Mfalse"
) ,
array(
"12.2.2.2",
"Singapore 1",
"Hub 2",
"Password 2",
"Mfalse"
)
</code></pre>
... | 2 | 1,979 |
Calling order Document.BeforeSave in C# Word Interop | <p>In my C# interop addin created using VSTO, I subscribe to the <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.document.beforesave.aspx" rel="nofollow">Document.BeforeSave</a> event. However, another MS Word addin is active on our client's computer also subscribing to this exact same even... | 2 | 1,233 |
Parse xsi:type in XML with ElementTree in Python | <p>I'm trying to connect to a RESTful API and I'm hacing problems when building the XML request, for that I'm using Elementree library.</p>
<p>I have an example of the XML I have to send in the request. From that example a build a model and then write the different attributes by code. But the output XML is not exactl... | 2 | 1,830 |
Access parent object from submodule | <p>I'm writing a module for accessing some data from a local SQLite Database, and would like the end-user functionality to work like this:</p>
<pre><code>import pyMyDB
myDBobj = pyMyDB.MyDB( '/path/to/DB/file' ) # Instance of the class MyDB
</code></pre>
<p>User has simply created an object that connects to a databa... | 2 | 1,237 |
Cast a class object to an interface object using reflection C# | <p>There have two dll's namely
a) lib1
b) lib2
These two library are loaded using reflection( as against to adding a direct reference in visual studio). I'm creating an object of a class , then want to type cast that object to the type of the interface (interface being in the dll loaded in the... | 2 | 1,093 |
EF Core Table does not exist when joining from multiple DbContext | <p>I am facing an issue when trying to join 2 tables from 2 DbContext which represents different databases.</p>
<p>I am using Fluent API to create foreign key relationship between 2 tables.
Here are the Dbcontext configuration and models.</p>
<pre><code>public class DbContextDemo1: DbContext
{
public DbSet<Agen... | 2 | 1,024 |
References to Controls in ContentControl are null at the Parent (Page) Level | <p>As a follow up to <a href="http://forums.silverlight.net/forums/t/192263.aspx" rel="nofollow noreferrer">this question</a> where it was suggested I use a ContentControl, I have run into a scenario when I use a custom made class that dervies from ContentControl on a page, any controls defined within that ContentContr... | 2 | 1,744 |
Angular - ng-tags-input. "angular is not defined" | <p>I have a new Angular project that I built with:</p>
<pre><code>ng new "app-name"
</code></pre>
<p>I'm trying to use the ngTagsInput for a tag input box but every time I build and run my app I get an error in my browser console saying:</p>
<pre><code>ReferenceError: angular is not defined
</code></pre>
<p>It look... | 2 | 1,985 |
How to mount volumes on kubernetes using emptyDir | <p>I am trying to create a deployment out of my kompose file, but whenever I try: </p>
<pre><code>kompose convert -f docker-compose.yaml
</code></pre>
<p>I get the error: </p>
<pre><code>Volume mount on the host "[file directory]" isn't supported - ignoring path on the host
</code></pre>
<p>I have tried a few diffe... | 2 | 1,043 |
Docker Cannot assign requested address | <p>I think I'm pretty close (I hope) to having xdebug running in a docker container, aiming to connect via Visual Studio Code.</p>
<p>I think that maybe I'm supposed to add a config to the <code>/etc/hosts</code> file in the container, directing an IP address to the url my files are being served over, but am not sure w... | 2 | 2,302 |
How to create standalone WSDL based web service using Spring WS? | <p>Please, help me to run standalone web service on local machine using Spring WS and existing wsdl.
I am new in Spring WS. There is my code:
package com.mayacomp.ws;</p>
<pre><code>import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.spr... | 2 | 1,826 |
MySQL Date Between Subquery Question | <p>Ok, I have a subquery that I am trying to work with and was needing a complicated question answered. There is a SQL tool that is being used to generate reports. With this tool, you can select dates as long as the date is in the outer select statement. So, you can use this tool to select a date range for instance fro... | 2 | 1,842 |
TypeError: Cannot read properties of null (reading '_rawValidators') | <p>I'm trying to use formgroup and formcontrol at Angular but on ng serve,its returning an error at console</p>
<p>Does anyone knows how to fix it?</p>
<blockquote>
<p>TypeError: Cannot read properties of null (reading '_rawValidators')</p>
</blockquote>
<p>my HTML:</p>
<pre><code> <form [form... | 2 | 2,000 |
How to set value of select element in dynamic form Angular 5 | <p>I am developing app with Angular 5 and using dynamic form from this tutorial <a href="https://toddmotto.com/angular-dynamic-components-forms" rel="nofollow noreferrer">https://toddmotto.com/angular-dynamic-components-forms</a></p>
<p>I have problem when initialize value of select element. I retrieve value from Fire... | 2 | 1,764 |
How get this xaml to work from app.xaml | <p>I made this UpButton.xaml file by converting it from an .ai-file that our graphics guys made but i just can't get it to work.
I was thinking of making this some sort of template/style for buttons, but our buttons are made up from rectangles and not the button object.</p>
<p>I've been fiddling with this since last T... | 2 | 3,308 |
Validation on a Complex Model for a multi-page form | <p>I'm trying to write a registration using devise and active merchant. The form is complex in that my user object looks like this:</p>
<pre><code>class User < ActiveRecord::Base
include ActiveMerchant::Utils
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :co... | 2 | 2,976 |
simpleDialog plugin won't work | <p>For my project I need to popup an image when i push a button.
I am trying to use the SimpleDialog plugin, which you can see over <a href="http://dev.jtsage.com/jQM-SimpleDialog/demos2/index.html" rel="nofollow">here</a>.
I am doing this in my HTML</p>
<pre><code><p>This shows standard, default popup only mod... | 2 | 1,109 |
What conditions can prevent layoutSubviews from being called after setNeedsLayout? | <h2>The problem</h2>
<p>In a custom view of mine (a <code>UIScrollView</code> subclass) I am calling <code>setNeedsLayout</code> in response to a "reload data" event (triggered by an external source). Most of the time this works correctly and <code>layoutSubviews</code> is called when the next view layout cycle occurs... | 2 | 1,059 |
Android - Uploading Image with Multipart Retrofit Failed or Crash | <p>I try to make an upload image with Retrofit Mulitpart Android. But I still get my app error.</p>
<p>This is how to get the image</p>
<pre><code> private final int SELECT_PHOTO = 1;
private void startGallery() {
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setT... | 2 | 1,447 |
Angular2 lazy loading modules: how to create a build package with SystemJS Builder? | <p>i'm using Angular2 and SystemJS to create a web application.
I have some modules in my app and in the router configuration i use lazy loading to open them.</p>
<p>Here is a routing file of my app that lazy loads two modules:</p>
<pre><code>const appRoutes: Routes = [
{ path: '', component: MainComponent,
... | 2 | 1,391 |
Cannot find module 'webpack/bin/config-yargs' -React JS | <p>I am new in React js , while running npm start it throws following error</p>
<pre><code>> y@1.0.0 start /home/ajeesh/Documents/reactApp
> webpack-dev-server --mode development --open --hot
internal/modules/cjs/loader.js:628
throw err;
^
Error: Cannot find module 'html-webpack-plugin'
Require stack:
... | 2 | 1,636 |
Issues with recording and playing .wav files IOS | <p>I have been facing issues with recording the audio and playing them back on IOS. </p>
<p>Here's what I use for Recording:</p>
<pre><code> AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *err = nil;
[audioSession setCategory :AVAudioSessionCategoryPlayAndRecord error:&err];
... | 2 | 1,411 |
Rollup bundles correctly but Vue is undefined | <p>I'm using rollup to bundle with vue and typescript. I'm getting the following errors:</p>
<pre><code>Uncaught TypeError: Cannot set property 'Vue' of undefined
Uncaught ReferenceError: Vue is not defined
</code></pre>
<p>I understand this has something to do with Vue not loading correctly. I do have Vue above my s... | 2 | 1,326 |
Ul Li last element not aligning properly | <p>I am having a problem where the last li element in a ul is pushing itself to the left further than the rest of all my pieces. Attached is a screen shot and my code. </p>
<p>I have tried using the last-child element but it doesn't work in Safari or Chrome.</p>
<pre><code>#attending ul {
display: inline;
margin:... | 2 | 2,991 |
CakePHP file upload on 000webhost | <p>I am trying to get my app to be able to handle uploads. This is the add action in DealsController.php. </p>
<pre><code><?php
public function add() {
if ($this->request->is('post')) {
$this->request->data['Deal']['user_id'] = $this->Auth->user('id');
$this... | 2 | 1,126 |
Android: ListView item click not working properly | <p>I am trying to implement a system of "favorites", so when a product is selected as favorite (by clicking a button), it is passed to a class called Favoris.java which displays all the favorite products as a ListView, which are all clickable to get more details on the clicked product. So far so good the listview works... | 2 | 7,348 |
Macro to concatenate two columns based on header values | <p>I have two columns in an Excel spreadsheet containing many columns. I would like to merge these two columns, but their location in the sheet may vary. This means that I need to utilize the first row column headers to determine which two columns to concatenate. I would like the result to be added as the next column i... | 2 | 1,147 |
How to upload and read XML file in servlet along with their tags | <p>Please advise me to read the XML file along with their tags. I am able to retrieve the contain of the tags but not the tag name. </p>
<p>Code snippet:</p>
<pre><code>FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
try {
List<FileItem> fiel... | 2 | 1,123 |
Partial View Form will not submit using Bootstrap Modal | <p>Here is the button to open the modal box (which works):</p>
<pre><code><button data-toggle="modal" data-target="#modal-addItem-@sectionCount-@rowCount" class="btn btn-success">Add New List Item</button>
</code></pre>
<p>Here is the modal:</p>
<pre><code><div id="modal-addItem-@sectionCount-@rowCoun... | 2 | 1,098 |
How do I move Windows desktop icons using python 2.7? | <p>I am trying to write a python routine to save and restore desktop icon positions. I am using 32-bit python 2.7 on Windows 7 x64. Using information from here (stack exchange), I am able to read the icon names and positions from the foreign process list view that Windows uses to store this info, but I fail when using ... | 2 | 2,956 |
Python: How to find more than one pathway in a recursive loop when multiple child nodes refers back to the parent? | <p>I'm using recursion to find the path from some point A to some point D.
I'm transversing a graph to find the pathways.</p>
<p>Lets say:</p>
<p>Graph = {'A':['route1','route2'],'B':['route1','route2','route3','route4'], 'C':['route3','route4'], 'D':['route4'] }</p>
<p>Accessible through:</p>
<p>A -> route1, route... | 2 | 1,140 |
Can't get HAL rendering with Spring HATEOAS and Jersey | <p>I used the Spring Initializr (<a href="https://start.spring.io/" rel="nofollow">https://start.spring.io/</a> ) to create an app with only starters "Jersey (JAX-RS)" and "HATEOAS".
Then I added @EnableHypermediaSupport(type = HAL), but I just can't get links rendered correctly in HAL format.</p>
<p>The format I aim ... | 2 | 1,025 |
Why android-inapp-billing-v3 library needs two attempts to purchase? | <p>I am trying to use android-inapp-billing-v3 library to implement in-app purchases inside my simple app. I'am using this library( <a href="https://github.com/anjlab/android-inapp-billing-v3" rel="nofollow">https://github.com/anjlab/android-inapp-billing-v3</a>)</p>
<p>I have encountered a strange problem: you need t... | 2 | 2,518 |
Marshalling/Unmarshalling java.util.Date to Json in jax rs | <p>I am using jaxb and Date adapter. But the response doesn't contain the date.</p>
<pre><code>@XmlRootElement(name = "project")
public class Project implements Serializable {
private static final long serialVersionUID = -6462790408417409266L;
private long projectId;
private long userId;
private Strin... | 2 | 1,113 |
start my android app when usb connect | <p>I try to write app which can start when usb connect
I learn from <a href="https://stackoverflow.com/questions/11445092/starting-my-android-application-automatically-after-connecting-the-usb-cable?answertab=active#tab-top">Starting my android application automatically after connecting the USB cable.</a></p>
<p>my co... | 2 | 1,206 |
Match duplicated rows in excel within a range | <p>We have a large excel file with 120000 rows of data where we need to find duplicated records.</p>
<p>The first records is the Master record to match against the list of duplicated records. We need to confirm whether the duplicate are true and highlight them.</p>
<p>Each record has a number of rows depending on th... | 2 | 1,265 |
Hitting AWS Lambda Memory limit in Python | <p>I am looking for some advice on this project. My thought was to use Python and a Lambda to aggregate the data and respond to the website. The main parameters are date ranges and can be dynamic.</p>
<p><strong>Project Requirements:</strong></p>
<ul>
<li>Read data from monthly return files stored in JSON (each fil... | 2 | 1,551 |
How do I setup virtualenvwrapper for Windows PowerShell? | <p>I have this installed</p>
<ul>
<li>on Windows 7</li>
<li>Python 2.7.6 (my default, with virtualenv installed)</li>
<li>Python 2.4.4</li>
<li>Python 2.5.4</li>
<li>Python 2.6.6</li>
<li>Python 3.3.3</li>
<li>virtualenv 1.10.1</li>
<li>virtualenvwrapper_powershell-12.7.8-py2.7</li>
</ul>
<p>I want to test code on al... | 2 | 1,083 |
Dynamic AutoCompleteTextView Suggestions Disappearing | <p>So I had it working... and then it broke, and I don't know why. I've been pulling my hair out trying to figure out what's gone wrong.</p>
<p>Here is the structure of the code:</p>
<pre><code>locale = (AutoCompleteTextView) findViewById(locationText);
locale.setThreshold(3);
adapter = new ArrayAdapter<String>... | 2 | 1,410 |
How must one use a ListEditor as a child of another Editor? | <p>I am using GWT 2.5.0</p>
<p>My intent was to create an editor hierarchy which binds to a <code>ParentBean</code> object. The <code>ParentBean</code> contains a <code>List<Group></code>, and the <code>Group</code> bean has a <code>List<ChildBean></code> and <code>List<Group></code>. From the Editor... | 2 | 2,314 |
Merging of multiple tables with Microsoft Access | <p>On work, I have a problem with merging multiple tables into one table with Microsoft Access. So what I have is one Microsoft Access DB-file with multiple tables.</p>
<p>We can assume that each table only consists out of two columns. CustomerID and numb_of_purchases. I have one table for each month and want to merge... | 2 | 1,073 |
Why would Propel not save this query, and also not give any errors? | <p>I have a collection of tables like so:</p>
<p><code>logbook</code>, <code>responsibility</code>, <code>user</code></p>
<p>Responsibilities are reused - but only one distinct responsibility per logbook. Each responsibility has one user. A user can have multiple responsibilities (on multiple logbooks). I have a tab... | 2 | 1,167 |
Why the Workflow Exceptions are not caught? | <p>The following is newly created thread code that has been successfully started by my UI thread (the UI code is not here).</p>
<p>When I single step in debugging I do get to this code.</p>
<p>When the workflow that I am executing does not have any problems, the code runs to completion. But when the workflow is fault... | 2 | 2,371 |
CakePHP array structure from a HABTM query | <p>I have two tables linked via a HABTM. countries & networks. They are linked together by the countries_networks lookup table.</p>
<p>I need to get all of the countries and all of the associated network ids for each corresponding country. I don't need to go as far as getting the network names, simply getting the ... | 2 | 1,117 |
Error: The view for AppController::index() was not found | <p>I am developing a simple application but it throws an error message.</p>
<p><strong>Controller Class:</strong></p>
<pre><code><?php
class RegisterController extends AppController
{
public $helpers=array('Html','Form','Session');
public $components=array('Session');
public function index(){
}
... | 2 | 1,963 |
Use the upgraded FolderBrowserDialog ("Vista style") in Powershell | <p>I'm using <strong>PowerShell</strong> to enable the user to browse for file/folder paths for a Node.js app (because I haven't found a better light-weight alternative so far), and I'm having the age old trouble of dealing with the horrible, poor usability <code>FolderBrowserDialog</code> that doesn't support:</p>
<ul... | 2 | 2,774 |
spring security rc2 sample build failure | <p>I get the following error while trying to build spring-security-samples-ldap-jc. I'm using the 3.2.RC2. I've added the <a href="http://repo.spring.io/milestone" rel="nofollow">http://repo.spring.io/milestone</a> to the set of repositories in my pom.xml</p>
<pre><code> [INFO] Scanning for projects...
[WARNING... | 2 | 7,854 |
tradingview close -close[1] accuracy | <p>I wrote a Pine script as follow for considering RSI indicator. In this code for calculating RSI, need to subtract closing price of the two neighboring candles (close- close<a href="https://i.stack.imgur.com/imYwn.jpg" rel="nofollow noreferrer">1</a>). As you can see in the below image the pine script close-close<a ... | 2 | 1,099 |
JQuery UI AutoComplete ASP.NET MVC5 rendering as a list | <p>In an ASP.NET MVC5 application, I have an AutoComplete box using JQuery UI. The problem is that the suggestions for the AutoComplete appears to be using <code><li></code> elements. </p>
<p><img src="https://i.imgur.com/QhdqX0S.png" alt=""></p>
<p>Like you can see, when i type "r" in "NomProprio" field, I see... | 2 | 1,063 |
Find a easier way to cluster 2-d scatter data into grid array data | <p>I have figured out a method to cluster disperse point data into structured 2-d array(like <strong>rasterize function</strong>). And I hope there are some better ways to achieve that target. </p>
<h2>My work</h2>
<h3>1. Intro</h3>
<ul>
<li><strong>1000 point data</strong> has there dimensions of properties (lon... | 2 | 1,609 |
processing va_list argument in JNA callback function | <p>How can I process a va_list argument with Java, having received it from the native library?</p>
<p>I am using a C library that facilitates logging through a callback function. The library is <a href="http://gphoto.org/proj/libgphoto2/" rel="nofollow">libghoto2</a> and I am using a JNA wrapper <a href="http://code.g... | 2 | 1,166 |
Upsampling Tensor for TensorRT | <p>The tensorflow model is converted to TensorRT and Tensorflow's ResizeArea(upsample in the picture) need to implement plugin.
<a href="https://i.stack.imgur.com/BGTnw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BGTnw.png" alt="enter image description here"></a></p>
<p>So ResizeArea is implemen... | 2 | 1,943 |
From StatefulWidget navigate to StatelessWidget runs the last builder but also the first builder | <p>Is there a way to prevent the <code>build()</code> from being called multiple times?</p>
<p>The next code creates two pages, each with one button, the button on <code>FirstPage</code> navigates to <code>SecondPage</code>, and the one on <code>SecondsPage</code> goes back to <code>FirstPage</code>.</p>
<p>The probl... | 2 | 3,177 |
AWS Sagemaker ValueError: Unsupported dtype object on array when using strings and dates | <p>I have a CSV file I'm trying to RCF on. If I put a date or string in the CSV then I get an error like the one below. If I limit it to just the integer and float fields the script runs fine. Is there some way to process dates and string? I see the taxi example from AWS and it has dates which appear the same as mi... | 2 | 1,690 |
Make multiple @pytest.mark.parametrize with pytest | <p>I was looking for how to make a double <code>@pytest.mark.parametrize</code>.</p>
<p>This wrapper has a great advantage because it allows you to test an assert on a parameter and move to the next parameters if it is false.</p>
<p>I would like to make a double <code>@pytest.mark.parametrize</code> to compare two tabl... | 2 | 1,178 |
Buttons fill vertical space | <p>I was told that I could use a second linear layout in such a way that my buttons would stretch to fill the remaining empty space vertically. I'm not sure where to go from here. Any help would be appreciated.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.a... | 2 | 1,317 |
Android - VideoView Memory Issue | <p>I am new to android and this is the first time I have tried anything with VideoView. I am streaming a couple MP4 files, the first (about 5mb and 1 minute long) opens automatically the other two (about 100mb and 1 hour long) require user interaction and while it plays fine the heap keeps growing and eventually it sta... | 2 | 8,711 |
Javascript not working for WebView - Android | <p>Currently I have this code where I want to retrieve a content of a webview and also at the same time remove display on some part of the webview but my code didn't do anything at all or showing any error so I'm at loss here. Currently, I'm referring to <a href="https://stackoverflow.com/questions/9579772/android-get-... | 2 | 1,081 |
Optimizing Querydsl BooleanExpression queries | <p>I've created a class with static methods that return Querydsl BooleanExpressions so I can simply pass these expressions to the <code>findAll()</code> or <code>findOne()</code> methods in my Spring Data repositories, as well as reuse them throughout my application. Like here: <a href="http://www.petrikainulainen.net/... | 2 | 1,630 |
GRPC call failing with error "Received unexpected EOS on DATA frame from server." | <p>I am using GRPC to connect to a service. Sometimes calls are successful, while sometimes it fails with exception <code>Received unexpected EOS on DATA frame from server.</code></p>
<p>I am not able to find the reason to this. Following is code making call:</p>
<pre><code>public class LmServiceClientImpl implements... | 2 | 1,121 |
Binding model and views in ember checkbox | <p>Don't understand which syntax bind my model and checkbox view.</p>
<p>My problem is: Ember works with true/false value in checkbox, but in my model fields contain 1 or 0.
Tell me the right way plz</p>
<p>example index.htlml :</p>
<pre><code> <script type="text/x-handlebars" id="alerts">
<div... | 2 | 2,236 |
Get firebase data order by descending date key | <p>Good Afternoon. I'm having a problem whenever I'm displaying the data from <code>firebase</code> . It was shown in a <code>recyclerview</code> but the arrangement in the <code>recyclerview</code> must the latest date first. </p>
<p>The date 2/1/2018 must be first on the list. Here is the codes on how I select the ... | 2 | 1,875 |
Items in ListFragment would not show in Listview using Custom Array Adapter | <p>I am implmenting a Fragment activity that implements ActionBar.TabListener, so I have 3 tabs that each have ListFragments which have a list populated with data obtained through the server. I have been facing this issue for a while now, and I couldn't find an answer no matter how many questions I looked into regardin... | 2 | 3,846 |
Sending object from thymeleaf template to Rest Controller returns "Unsupported Media Type" | <p>I'm trying to POST some object fields to a RestController using thymeleaf. </p>
<p>But the result of the post returns what looks like a parsing error : </p>
<blockquote>
<p>There was an unexpected error (type=Unsupported Media Type, status=415). Content type
'application/x-www-form-urlencoded;charset=UTF-8' no... | 2 | 1,802 |
Angular 6 do I have to generate jwt in client to match server or just the server | <p>I am a total newbie to jwt and I thank you for your patience.</p>
<p>I am generating jwt in PHP with the following:</p>
<pre><code>// Create token header as a JSON string
$header = json_encode(['typ' => 'JWT', 'alg' => 'HS256']);
// Create token payload as a JSON string
$payload = json_encode(['username' =&... | 2 | 2,998 |
error: The method 'setState' isn't defined for the type 'TasksScreen'. (undefined_method at [todoey] lib/screens/tasks_screen.dart:26) | <p>So I am trying to use a callback to add a task to my task list. But I am unable to access setState() in my callback function.
Let me explain,</p>
<p>This is my add_task_screen, that contains my modalBottomSheet.</p>
<pre><code>import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Ad... | 2 | 3,304 |
Setting up multiple containers in github actions | <p>I'm trying to set up our CI with github actions. After trying for a couple days to do it on my own, I come here looking for help.</p>
<p>Actually I have a Go API that uses a postgres database and my tests directly call the API, so I need the API and the database to be running for the tests.</p>
<p>Locally I don't ha... | 2 | 1,698 |
TextView with ellipsize middle casues "ArrayIndexOutOfBoundsException" Exception | <p><strong>Edited:</strong></p>
<p>I am getting <code>java.lang.ArrayIndexOutOfBoundsException:</code> <strong>Exception</strong> for a TextView with ellipsize <code>middle</code>. Here is my TextView</p>
<pre><code> <TextView
android:id="@+id/textView"
android:layout_width="match_parent"
... | 2 | 2,294 |
When does dplyr's mutate function work with a database? | <p>I try to use <code>dplyr</code>'s <code>mutate()</code> function on a SQL like database. I don't understand why it work sometimes and doesn't other times. </p>
<p>Here is one example with the stantard example from <a href="https://cran.rstudio.com/web/packages/dplyr/vignettes/databases.html" rel="nofollow noreferre... | 2 | 2,757 |
How to solve javax.net.ssl.SSLHandshakeException Error without Google Play Services installed? | <p>I am working on radio app using Exoplayer.
In case of <a href="https://audio.simplecast.com/b07b19ee.mp3" rel="nofollow noreferrer">this</a> podcast the Exoplayer throws SSLHandshakeException.</p>
<p>To fix this I tried:</p>
<p><strong>1. Update security provider with Provider installer by calling</strong> <code>P... | 2 | 2,351 |
Port-forwarded Rails app in Docker seems to cause CSRF exception | <p>I have a Rails app that runs in a Docker container which is assigned an ip <code>172.17.0.3</code>. Incoming requests to the host machine <code>51.x.x.x</code> are forwarded to the rails app in <code>172.17.0.3</code>. More specifically, this was done as such:</p>
<pre><code>docker run -p 8080:8080 rails_app
</code... | 2 | 3,627 |
AngularJS npm test (Karma) remote server command line | <p>I am currently working through this AngularJS tutorial (<a href="https://docs.angularjs.org/tutorial/" rel="nofollow noreferrer">https://docs.angularjs.org/tutorial/</a>) and have encountered an interesting problem when attempting to run unit tests using 'npm test'. This is described at step 2 of the tutorial (<a hr... | 2 | 1,176 |
Can you piece together the following clues to help me read temperatures out of the Winbond W83793 chip? | <p>I am trying to get <a href="http://openhardwaremonitor.org/" rel="nofollow">OpenHardwareMonitor</a> to read temperature data out of the <a href="http://www.nuvoton-usa.com/products/winbond_products/pdfs/PCIC/W83793Ga.pdf" rel="nofollow">Winbond W83793 chip</a> on my Supermicro X7DWA motherboard. The problem is that... | 2 | 1,284 |
client/server, encrypted comms | <p>I've got a basic tcp client/server setup going in c#. I'm now trying to encrypt the data going back and forth. I'm able to send data from the client to the server, have the server run a command, then try to send the results back to the client. I can get the data from client to server, and the server runs the comma... | 2 | 1,946 |
highcharts- php/mysql data fetch | <p>i have echoed the data from database in another file.. now i am fetching data . I am new to jquery and highchart.. plz help
my data format passed is :</p>
<pre><code>[
{"name":"a","data":0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,4... | 2 | 3,196 |
Can't authenticate Django user in shell | <p>For some reason I can't authenticate a newly created user in the Django shell and I really don't know what's wrong. Must be something very stupid...</p>
<p>Start Django shell:</p>
<pre><code>(venv) xxx:xxx xxx$ python ../manage.py shell
Python 3.6.0 (v3.6.0, ...)
[GCC 4.2.1 (...) (dot 3)] on darwin
Type "help", "... | 2 | 1,325 |
Force service to return json instead of default html | <p>I want to be able to code in php the equivalent to this curl command:</p>
<pre><code>curl -F out=json --form-string 'content=<!DOCTYPE html><html><head><title>check it</title></head><body></body></html>' http://validator.w3.org/nu/
</code></pre>
<p>This curl c... | 2 | 1,129 |
Permissions: bitwise operations or many-to-many child table? | <p>I am trying to understand the best way to work with permissions and as far as I'm aware there are two major options.</p>
<p>The first option is to use bitwise operations, and for this I would use the following database structure:</p>
<p><strong>users</strong></p>
<pre><code>user_id | user_permission
-------------... | 2 | 1,064 |
Making dropdown menu with flags using HTML, CSS and JS | <p>I try to create my first website and I want it to have a dropdown menu with multiple languages.</p>
<p>My site uses only HTML, CSS, and JS. I don't use bootstrap.</p>
<p>I tried to use the codes from the following <a href="https://stackoverflow.com/questions/60606265/how-to-make-a-languages-selector-button-with-flag... | 2 | 1,163 |
AWS Lambda with Java Spring | <p>I'm trying to implement an AWS Lambda service using Java Spring. I've gone through a whole bunch of tutorials which have told me a whole bunch of ways to do it, but I can't get it to work.</p>
<p>The main problem I'm having is that the AWS Lambda library requires classes to have zero-arg constructors, which makes ... | 2 | 2,663 |
Maven Assembly plugin parent descriptor sharing | <p>I have a project, with a parent module. Parent and child both using maven-assembly-plugin. </p>
<p>Parent uses it's own descriptor (zip.xml):</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w... | 2 | 2,504 |
How to retry a PostgreSQL serializable transaction with Spring? | <p>I am developing against a PostgreSQL v12 database. I am using <a href="https://www.postgresql.org/docs/current/transaction-iso.html#XACT-SERIALIZABLE" rel="noreferrer"><code>SERIALIZABLE</code></a> transactions. The general idea is that when PostgreSQL detects a serialization anomaly, one should retry the complete t... | 2 | 1,596 |
Exit Popup not working | <p>I'm trying to get an exit popup to work. When user closes browser, it asks them if they want to stay or not, and in the background, it starts to redirect already.</p>
<p>This code works in Firefox, but not in Chrome and Opera.</p>
<p>In Chrome, the popup appears but no redirect happens.
In Opera, the popup doesn't... | 2 | 1,132 |
Sax parsing of local xml file in android | <p>i want to parse country it is present in xml folder
</p>
<pre><code><My_location_country>
<Country_str_code>AW</Country_str_code>
<Country_str_name>Aruba</Country_str_name>
</my_location_country>
</code></pre>
<p>.......................
i want to display country name in... | 2 | 1,794 |
How to Know which button clicked on Rg.Plugins.Popup | <p>I am using a Rg.Plugins.Popup PCL in Xamarin form and opening popup after button click. I want to know the process of which i can understand which button is clicked on the popup so i can implement next part of code according to the selection on Popup.</p>
<pre><code><pages:PopupPage xmlns="http://xamarin.com/sc... | 2 | 1,135 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.