title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Angular JS 1.4 $formatter only runs one time | <p>I have a directive that formats a datestring. It runs successfully on page load, but after that, any input change does not run the formatter.</p>
<pre><code>appTracker.directive('dateText', function() {
return {
restrict: 'A',
require: 'ngModel',
link: function(scope, element, attrs, ctrl) {
ctr... | 3 | 1,202 |
Failed in deploying to Heroku | <p>When deploying my Ruby on Rails app to heroku, I get <code>an application error page</code>, <a href="https://secret-fjord-97193.herokuapp.com" rel="nofollow">here</a></p>
<p>When typing heroku logs in my terminal line, I get the following information which I do not know how to process? Can anyone tell me what I ne... | 3 | 1,806 |
Quickblox: ClassDefNotFoundError : Smack.smackAndroid in video chat | <p>I have used <a href="http://quickblox.com/developers/Sample-videochat-android" rel="nofollow">this</a> link to preform videoChat.However, it gives me <code>java.lang.NoClassDefFoundError</code> which cannot locate : <code>com.quickblox.module.chat.smack.SmackAndroid</code> class .I tried changing the preferences of... | 3 | 1,044 |
Unhandled Exception: type '(String, int) => Future<Null>' is not a subtype of type '(String, int?) => void' in type cast | <p>Need help to solve this problem, i got stuck with this when running my code. it keeps on showing this error Unhandled Exception: type '(String, int) => Future' is not a subtype of type '(String, int?) => void' in type cast.. i tried solving this to no avail, i went to various forums and i saw different ideas w... | 3 | 1,968 |
oauth signature Invalid - Smugmug - PHP - cURL | <p>I am getting OAUTH signature invalid error. Can someone please check what am I doing wrong. Below is my PHP Code, I ran through lot of docs and auth bible website too but below code is not working ! please help !!! I have removed my key and secret for security reasons.</p>
<p>=======================================... | 3 | 1,077 |
Matplotlib scattered plots inside a nested for loop | <p>I have 2 folders, each of them contain 2 files:</p>
<pre><code>./folder_222/116.5.dat
./folder_222/118.1.dat
./folder_444/116.5.dat
./folder_444/118.1.dat
</code></pre>
<p>(116.5 and 118.1 represent a volume)</p>
<p>I would like to create a 2 row, 1 column subplot graph, where:</p>
<pre><code>Upper Graph: ... | 3 | 1,651 |
Corrupt UDP Packet java | <p>Sender</p>
<pre><code>package core;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
im... | 3 | 3,304 |
MEAN Stack - ng-click inside of ng-repeat not working with database | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code> //app.js
var blogApp = angular.module('BlogApp', []); //angular module setup, matches ng-app from index.html
blogApp.control... | 3 | 1,196 |
Run Angular 12 inside JavaFX - NavigationError | <p>We're trying to run our Angular 12 page in a external application with a JavaFx Webview.</p>
<p>The initial html, js successfully loads and navigates to the login page, but it seems that manual navigation by the router (for example after logging in) doesn't work.</p>
<p>The logs of javafx show the following issues:<... | 3 | 1,398 |
Efficiently pass parameters to CUDA Kernel | <p>I'm currently refactoring my CUDA code and stumbled across a problem: Passing multiple device pointers to the kernel can become quite ugly and, therefore, I thought of grouping them together inside a struct of arrays like so:</p>
<pre><code>struct Data {
float* a;
float* b;
float* c;
// ...
};
__glo... | 3 | 1,105 |
How can I inject a URL of a mock server to terraform's acceptance tests? | <p>There's a whole section about acceptance tests for terraform provider on the <a href="https://www.terraform.io/docs/extend/testing/acceptance-tests/index.html" rel="nofollow noreferrer">official</a> website that is assumes I'm going to run it with a test account on a real infrastructure.</p>
<p>That said, in my case... | 3 | 1,180 |
How to prompt user when he tries to move out of any component in angular 6 | <p>I have a payment page with payment component as -</p>
<pre><code>import { Component, OnInit } from '@angular/core';
import { PayPalConfig, PayPalEnvironment, PayPalIntegrationType } from 'ngx-paypal';
import { AppService } from '../app.service';
import { Payment } from '../models/payment.model';
import { Router } f... | 3 | 1,383 |
How to create a legend instead of a colorbar for a multicolored scatter plot? | <p>I want to add a legend instead of a colorbar to a scatter plot with multiple colors.</p>
<p>I am looking for something like <a href="https://stackoverflow.com/questions/19877666/add-legends-to-linecollection-plot/19881647#19881647">this</a> for a scatter plot.
My current graphic looks like this:
<a href="https://i.... | 3 | 2,158 |
How to retain $_REQUEST["id"] value upon page reloading | <p>I have a contact form in PHP. I have a code for editing my contact details in the database. The code checks for errors in the values posted, and displays a error message. But the page reloads upon form submission and the <code>$_REQUEST["id"]</code> is lost.
How can I retain the <code>$_REQUEST["id"]</code> upon pa... | 3 | 3,919 |
How to translate my Android code to Swift code for my Firebase function? | <p>From my research, there isn't much help translating Android code to Swift code. With some help, we were able to translate or convert some of the code but it's not quite finished. When I run the code, I get an error:</p>
<pre><code>Response could not be serialized, input data was nil or zero length.
responseSeria... | 3 | 3,221 |
SQLAlchemy not cascade deleting multiple levels down | <p>I'm a little new to SQLAlchemy. I've searched around for an answer to my question but I have found nothing that works for my situation. </p>
<p>In short, deleting a record in the Release model will delete all the records in the other models as long as there is no related records in TestResults. However, if there ... | 3 | 1,220 |
Toggle card position using jQuery | <p>I'm trying to set up a website of bios for my characters I've made up. Each bio is on a "card" with class <code>.container</code>. When the page loads, all the cards are on the left side of the screen, and a dialog appears telling the user that clicking a card one "activates" it, i.e. "moves it to the right-side of ... | 3 | 3,391 |
Lucene.Net Query with two MUST Clauses Returning Incorrect Results | <p>I've created a query with two MUST clauses (and zero SHOULD clauses) that is returning results that satisfy only one of the clauses. As far as I can tell, this is incorrect behavior.</p>
<p>An example of such a query before searching is </p>
<pre><code>{+(Text:wba) +(Attribute:10)}
</code></pre>
<p>The incorrect ... | 3 | 1,428 |
My link is not working well using jquery | <p>I have a link like this</p>
<pre><code> <li><a class='myclass' href="<?php echo base_url();?>index.php/controller">Search</a></li>
</code></pre>
<p>and my jquery is </p>
<pre><code> $("a.myclass").click(function(){
var link = $(this);
var url = link.attr("href");
$(".content").lo... | 3 | 1,628 |
Ionic side menu, how to place the link at the bottom of the side menu | <p>I have a side menu in an ionic app, I need to have links in it, and the link for the logout should be at the bottom of the side menu, not sure how to achieve this, since the ion-list height is depended on the amount of links there are, and can't play with position of the link itself to place it at the bottom of the ... | 3 | 1,097 |
Mapping API to Object C# | <p>I tried to map the API to an object, but got an error:</p>
<blockquote>
<p><em>Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List'1[APIWebApp.Models.UserModel]' because the type requires a JSON... | 3 | 1,396 |
OSX bluetooth openRFCOMMChannelAsync claims to have connected but connection is not established and delegate is never called | <p>I have written a C++ wrapper for the objc bluetooth framework for OSX. The wrapper works so far that it can a) obtain a list of all paired devices, b) get one device, c) print its name, d) open the channel. This all works without any reported errors. However, my bluetooth device (an RFComm box) never reports a conne... | 3 | 1,978 |
Ajax HTTPServlet request does not pass information from ajax to controller | <p>My controller on java side is not receiving the information i send with my AJAX
It worked in the beginning but now it does not work, it keeps returning null.</p>
<p>I've tried:
Changing parameter name
Putting parameter name in ""
Calling methods that get the information from registrationform directly in Ajax</p>
<... | 3 | 1,639 |
A for loop with rowSums function | <p>I am a beginner in R and I have written a double-for loop for calculating chi2 values for selecting features among 6610 terms and 10 classes.
Here is my for loops:</p>
<pre><code>library(raster)
#for x^2 [n,r] = term n, class r. n starts from col #7 and r starts from col #6617
chi2vals <- matrix(0:0,6610,10... | 3 | 1,377 |
JTextField won't disappear completely | <p>I created a dialog box and have the user enter 5 colors in it from memory. That all completely works, there's just a slight aesthetic problem. Upon entering all 5 colors correctly, or getting one incorrect, it's suppose to wipe the contents within the dialog box and print a message "Sorry! Incorrect color" or "Congr... | 3 | 3,925 |
opencl giving different results on different nvidia drivers? | <p>This is a sample problem to understand the functioning of OpenCl.</p>
<p><strong>Problem</strong>: I have three arrays <strong>array1, array2, array3</strong>. addition of each element of an array2 and array3 is saved into array1.</p>
<p><strong>example: array1[1] = array2[1] + array3[1];</strong></p>
<p>array1, ... | 3 | 3,608 |
Is onRestoreInstanceState only called when switching orientation horizontal-vertical - any other cases? | <p>The docs clearly state that "<a href="https://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)" rel="nofollow noreferrer">This method is called after onStart() when the activity is being re-initialized from a previously saved state, given here in savedInstanceState<... | 3 | 3,590 |
React Native header clickable with asyncStorage | <p>Essentially, I have a Cloud Icon in the upper right hand corner of my app screen that when I click it I want it to edit an <code>AsyncStorage</code> variable in my application. And I am trying to get that variable to change the style of the <code><Icon></code> class.</p>
<p>To do this, I am trying to make it ... | 3 | 1,094 |
Heroku Node.js (express.js) App Works Locally but failed on heroku when using MongoDB | <p>I have an node.js app based on express.js, it works fine on localhost, and it also can connect the Mlab database from localhost:</p>
<pre><code>sheng@Takeshi:~/Work/smr_pjt_loct_dr$ NODE_ENV=production MONGODB_URI=mongodb://heroku_60bjp5jd:PASSWORD@ds115712.mlab.com:15712/heroku_60bjp5jd nodemon start
[nodemon] 1.1... | 3 | 2,274 |
Actionbar items always appear in overflow menu | <p>I am using a MainActivity derived from FragmentActivity with Fragments representing each tab
in the ActionBar. From the docs at <a href="http://developer.android.com/guide/topics/ui/actionbar.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/ui/actionbar.html</a>, I implemented a split Action... | 3 | 2,737 |
Please suggest hardware configuration for network-intensive Flink job (Async I/O) | <p>TLDR; I am running Flink Streaming job in mode=Batch on EMR. I have tried several EMR cluster configurations but neither of them works as required. Some do not work at all. Workflow is very network-intensive that cases main problems.</p>
<p><strong>Question: What EMR cluster configuration (ec2 instance types) would ... | 3 | 1,032 |
Data not display inside vuetify v-text-field with Nuxt & Firestore | <p>this is a related question which I've asked before:
<a href="https://stackoverflow.com/questions/69748818/get-document-data-from-firestore-and-show-the-data-into-each-of-the-form-input-f">Get document data from Firestore and show the data into each of the form input field using Nuxt & Vuetify</a></p>
<p>I want t... | 3 | 2,228 |
Code involving counting prime numbers stops working once a composite number is input. C++ | <p>Code involving counting prime numbers stops working once a composite number is input. C++.</p>
<p>Code:</p>
<pre><code>#include <iostream>
using namespace std;
int main()
{
int num;
string var;
int sum=0;
int i;
int largest = INT_MIN;
int smallest = INT_MAX;
int j = 0;
int pri... | 3 | 1,413 |
Dropzone.js vuejs laravel message: "Undefined index: width" | <p>When I select a file it is uploaded to the public/upload-images folder. In the laravel Controller the validation fails because the params are not included in the request. When I dump and die. This is what I get. As you can see... the params are missing. Below that is the Dropzone setup.</p>
<pre><code> echo '<... | 3 | 1,096 |
What am I doing wrong with this Object array and the getter / setter methods? | <p>I have an assignment to make a student class with setter and getter methods followed by a course class where we make an array of student objects that we use to test the methods from that student class. I am clearly doing something wrong though.</p>
<pre><code>class Course{
static Student[] Roll = new Studen... | 3 | 1,256 |
Separate duplicates from unique | <p>I tried with many XSLT methods like Key, for-each-group and match method options, but it is not working for me.</p>
<p>Input XML:</p>
<pre><code><?xml version='1.0' encoding='UTF-8'?>
<CustomerRecord>
<Customer>
<chargeto>ABC</chargeto>
<chargename>GARY</cha... | 3 | 1,964 |
cant seem to figure out the error: get_queryset() takes 1 positional argument but 2 were given | <p>I have a django rest framework project. I created a viewset and I am setting up the urls for the viewset. I am getting the following error:</p>
<pre><code>TypeError at /api/v2/preferences/
get_queryset() takes 1 positional argument but 2 were given
</code></pre>
<p>I am working with the preferences urls...</p>
<p... | 3 | 3,104 |
React + SPFx I get my empty list and only get the items by manipulating them | <p>I'm creating a Sharepoint list viewer with filtering and search. When the WebPart loads the list appears empty and only shows the items when I do a search or filter. When I delete the search or filter all the items appear. How can I show all items from the beginning?</p>
<p><a href="https://i.stack.imgur.com/xBEq4.... | 3 | 3,997 |
when a checkbox is selected a div is open and need to alert text field values in that particular div using javascript | <p>i have a form and i contains some checkboxes. When a checkbox is selected a div open and in that div there are some text fields. What i need to is when a check box is selected i need to alert textfield values in that particular div when a form is submitted. i have many checkboxes and need to apply this validation on... | 3 | 6,228 |
calling ajax jquery multiple times on click event fail | <p>When the page first load it calls the function updateAuctionInfo(id) ,it passes Viechleid hidden in the input filed and check if the date parameter is undefined ,then it makes ajax request,the first time the page load it works,but when i choose the date form datepicker and click the button ,it fails ,there is json d... | 3 | 3,157 |
I get undefined values in my field value when inserting multiple documents after converting csv to json string and parsing. Why? | <p>Basically, I am trying to do an import function for csv files where the csv file will get converted to json before then being inserted into the mongodb. This is my code.</p>
<pre><code>//require the csvtojson converter class
var Converter = require("csvtojson").Converter;
// create a new converter object
var conve... | 3 | 1,066 |
Persistent aware KieSession not using Pessimistic Lock during transactions | <p>I am using <strong>Drools</strong> with <strong>Spring Boot</strong> 2.3 and I have implemented the persistent aware <code>KieSession</code>, in which <strong>MySQL</strong> is used for storing the session. I have successfully integrated the default <code>EntityManagerFactory</code> of Spring Boot with Drools but my... | 3 | 2,514 |
filter array into different array on the basis of fields | <p>I have a array as follows:</p>
<pre><code>[
{
"values": [
{
"title": "Status",
"text": "closed"
},
{
"title": "Timeline",
"... | 3 | 1,439 |
remove NA values in time series which are not actual dates | <p>I am using some time series data which has some NA values in there. The data looks like:</p>
<pre><code>58 27/2/2001 22
59 28/2/2001 25
60 29/2/2001 <NA>
61 30/2/2001 <NA>
62 31/2/2001 <NA>
63 1/3/2001 19
</code></pre>
<p>The NA values occur at the end of the month, so in February I have N... | 3 | 4,191 |
What will URLConnection object return when connection is broken | <p>I am using the URLConnection object in java, to post data to a remote database (via REST). I need to post alot of small datapackages, so I'd like to let my connection stay open until I'm sure there are no more new datapackages to send. However, it is possible that there are long periods of time, when there will be n... | 3 | 1,542 |
How to .slice changing parts of a string in jQuery | <p>I have several divs that use bootstrap Grid system to allow users of the site to "zoom" content.
In this example with the <code>class="abcd b1 col-lg-6"</code> everything works fine.
But then I have my <code>b1</code> part of the classes.. it will go up beyond <code>b10</code>, which makes my code no longer work.
... | 3 | 1,185 |
Spinner moves down once receives items | <p>I have a simple layout, below is a relevant fragment. It looks exactly as I want it to - as long as the spinner is empty. Once I add items to it (in runtime) - it jumps like half its height down.
Why?</p>
<pre><code><ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="... | 3 | 1,314 |
How to check values in Dynamic Text Editor got changed or not? | <p>I have a text editor that is created in runtime-dynamically with dynamic id's.</p>
<p>Before close the window , I am trying to check whether anything changed in that editor or not.</p>
<p>I tried with different events such as onblur, onfocusout, onkeypress etc..</p>
<p>Here is my code:</p>
<pre><code> <table c... | 3 | 2,313 |
Sprite not moving despite inputs in pygame | <p>I'm facing a problem in pygame where the sprite is not moving regardless the inputs, i've checked it several times but have no clue what's wrong with it. There are 3 pages, first contains the main loop of the game, second contains the code of player sprite and third contains some game functions.</p>
<p>main---------... | 3 | 1,475 |
vaadin combobox load wrong custom style | <p>In my polymer project , i use a vaadin-combobox in two page like this:
- page1: i create a custom combobox style file and import to my page:</p>
<pre><code><link rel="import" href="../elements/base/vaadin-text-field-custom-radius-theme.html">
</code></pre>
<p>content of this file:</p>
<pre><code><dom-m... | 3 | 1,770 |
cursor.find() callbacks not returning in meteorjs | <p>I am returning results from a collection with the second result dependent on the first. So, I find resultA, and resultB has to be anything not equal to result A. </p>
<p>My console.log statement shows the data that I want, however, when I return it, nothing shows up in my handlebars template. Nothing returns even i... | 3 | 1,110 |
Arcs are not responding to key functions? | <p>I'm reading a tutorial book on how to program python. In it there's this game called the 'pie game'. The game is where these 4 numbers pop up on the screen, you press the corresponding number to have the arcs pop up. Once all the numbers are pressed, all the arcs pop up to from a circle and the circle turns green. I... | 3 | 1,700 |
Enter more than one ingredient for a recipe | <p><a href="https://i.stack.imgur.com/qwIAs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qwIAs.png" alt="Recipe form" /></a></p>
<p>This is a project to display recipes in addition to performing many operations on recipes such as deleting, adding and modifying. When adding a new recipe I want to a... | 3 | 3,839 |
How can i validate multiple array controller with select option in react js? | <p>I am doing simple an validation using react hook form but how can i take name after errors.name because i have an too complex name and i can't change that name cause of backend</p>
<p><a href="https://codesandbox.io/s/react-multiple-validation-demo-91vig" rel="nofollow noreferrer">Here is an Code sandbox link of my ... | 3 | 1,343 |
AddOpenIdConnect() and DefaultPolicy as FallbackPolicy cause signin-oidc loop | <p>I had a <strong>.NET 5 Blazor Server</strong> application working with authentication against an <strong>Identity Server 4</strong> provider. The app is hosted in a Kubernetes cluster fronted by Nginx Ingress controller.</p>
<p>The original app had the following code in <code>Startup.cs</code></p>
<pre><code>...
ser... | 3 | 3,789 |
Mongoose nested update "Cannot use the part.." to traverse | <p>I have a question about updating nested documents in MongoDB. I was using Mongoose but because I couldn't manage to find the answer, so I switched to my Robo3T shell (v.1.1.1).</p>
<p>What I want to do is insert an answer to a question in a round. The document has an array of rounds. Each round has an array of ques... | 3 | 10,838 |
how to get div inside of ul-li-a and make equal inside text of div | <p>I have a cached list inside search button and once I choose one of them it should trigger the menu and pick up the right one. However I could not figure out how to compare the <code>innerText</code> of a <code>div</code> with the chosen one from the search area. Both <code>a</code> and <code>div</code> should be vis... | 3 | 7,547 |
How to list the data in the tableview | <p>This is the screen shot. According to this how to list the data in the tableview:</p>
<p><img src="https://i.stack.imgur.com/HkJg0.png" alt="image"></p>
<p>Already I have code as below.</p>
<pre><code>func numberOfSections(in tableView: UITableView) -> Int {
return questionViewModel.numberOfSections()
... | 3 | 1,355 |
Update instances of ModelFormset | <p>In my django app two models are connecetd by <code>manytomany</code> relation and I am using <code>modelformset_fatory</code> to create a form like this </p>
<p>Views.py</p>
<pre><code>def post(request):
tform = TeamForm()
pform = modelformset_factory(Player, form=PlayerForm, extra = 1)
pform = pform(r... | 3 | 1,161 |
Find the text between two string pattern | <p>i have a log text like this.</p>
<pre><code>data = '''
================================================================================
Annotation file:
/b/cd-builder/sandboxes/sb_DEV_COMMON_BRANCH-_act-builder-4977/annofile-4977TB53661_cd-builder.xml
Build ID: 27951 on Host bng-emake-5a.juniper.net, Cluster Mana... | 3 | 1,165 |
Is there a way to capture whether any radio button has been clicked and react from it | <p>please refer to the reproducible code below. Everything works fine up to one point. If you select a team, and choose a weight through pushing the action buttons, and then click the populate button, a table appears with the weights.</p>
<p>One thing though. If you select, say team = a, and input +10%, and switch t... | 3 | 1,386 |
Manage Threads on Rxjava | <p>I am trying to implement the Redux pattern to manage state following the presentation by Jake Wharton: <a href="http://jakewharton.com/the-state-of-managing-state-with-rxjava/" rel="nofollow noreferrer">http://jakewharton.com/the-state-of-managing-state-with-rxjava/</a>
I want everything in the stream to run on a ba... | 3 | 3,466 |
Radio buttons keep sending wrong values | <p>I'm new to Android and I recently had a homework: one of the activities will send values from radio buttons and some text views to the database, but when I try to run it and check my database, it keeps showing wrong values. The only radio button sending the right value is the first one.</p>
<p>This is the activity:... | 3 | 12,047 |
What is required to refresh bound data displayed on winform? | <p>Scenario:</p>
<ul>
<li>A child form which is made visible via a button.</li>
<li>A delegate is created to run certain code when this child is closed.</li>
<li>The child form is used to edit the underlying data</li>
<li>When the child form is closed the latest version of the data should be displayed on any bound con... | 3 | 1,504 |
Proguard - Can't find common super class exception for apache cxf / java.lang.IllegalArgumentException | <p>When i try to build with proguard i got exception like this</p>
<pre><code> Class = [org/apache/cxf/io/CachedOutputStream]
Class = [org/apache/cxf/io/CachedWriter]
Method = [getInputStream()Ljava/io/InputStream;]
Method = [getReader()Ljava/io/Reader;]
Exception = [java.lang.IllegalArg... | 3 | 2,281 |
Django form selection box 'jammed' as active so cant make selections | <p>USERS can Upvote or Downvote Posts/Projects posted by Other Users:
<a href="https://i.stack.imgur.com/cwgj8.jpg" rel="nofollow noreferrer">screenshot of 'jammed' active dropdown selection box</a></p>
<p><strong>THIS CODE DIRECTLY BELOW is the models.py that contains the Project class (model) with the vote_total and ... | 3 | 1,725 |
sudden 505 error getting to my website on linux apache php | <p><strong>suddenly i am getting this error</strong></p>
<pre><code>The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@kibakibi.com to inform them of the time this error occurred, and the actions you performed just... | 3 | 1,584 |
How do I randomize the name of an uploaded image | <pre><code>if( isset($_POST["Headline"]) && isset( $_POST["Summary"]) && isset( $_POST["Description"])&& isset( $_POST["submit"]) ) {
$Headline = $_POST['Headline'];
$Summary = $_POST['Summary'];
$Description= $_POST['Description'];
$image_file = $_FILES["txt_file"]["name"];
... | 3 | 1,024 |
how to fix duplicate Displayed records in table in ASP.NET Core MVC? | <p>I'm trying to display records to View but it shows duplicate records. I try to debug in the Controller, the records are correctly retrieved from the database no prob The problem is in the Views.</p>
<pre><code><tbody>
@if (Model == null)
{
<tr>
... | 3 | 1,360 |
Session Clash in Laravel 5.7 | <p>Please I need a guide to solve this issue.</p>
<p>I have an application which sends an email notification to a user when he/she is registered on the application by the System Admin. The newly registered user is expected to click a link in the email and that should take him/her to the login page.</p>
<p>However, I ... | 3 | 1,943 |
Nested routes with react router v4 not working | <p>I have create a route for a page.In side that page I have use 4 component.I have give path to these to these component.In header dropdown I have given links to these components, On first click the path is change. <a href="https://i.stack.imgur.com/t3lqs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | 3 | 1,243 |
How do I prevent one partial from hijacking the local variables from another in the same view? | <p>So I have a <code>Question#Show.html.erb</code> that has the following:</p>
<pre><code> <% @question.answers.each do |ans| %>
<%= render partial: "questions/answer", locals: {ans: ans} %>
<% end %>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div c... | 3 | 1,639 |
Problems in using the user-provided values of headers in wget command | <p>I am writing a simple bash shell script; which outputs the page-load time of url. The server responds with correct page only when it is requested with specific custom headers (FYI: absence of headers the default page is served by server. )
The url to visit & its headers are read from a config file (delimited by... | 3 | 1,232 |
Merging and rearranging xml using xslt | <p>I am using XSLT for converting a XML derived from web and convert the same on the fly into the target xml file denoted as output .
I am still unable to do so even after trying a lot , Can anyone please help me out with this conversion .</p>
<p><strong>Source XML</strong><br>
</p>
<p></p>
<pre><code><alloceleme... | 3 | 1,173 |
Message after submit on radio button | <p>I'm working on a simple quiz. One question is displayed at a time with 3 possible answers on radio buttons. The answer for each question is stored in a table from a database called
SOLUTION:</p>
<p><a href="https://i.stack.imgur.com/b57IU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b57IU.jpg... | 3 | 1,599 |
In MSBuild, how do I aggregate an ItemGroup (specifically, find the largest number in the metadata of a group?) | <p>I have tried using a batch target to batch by the metadata field that contains the number:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<HighestNumber>0</HighestNumbe... | 3 | 2,268 |
Why the grid view appear different in the emulator? | <p>Why does the emulator have different sizes of buttons other than the designed ones here is the XML? This is a serious problem with the grid views and I've encountered it many times but I can't find the answer. </p>
<p>Where is the problem?</p>
<p><img src="https://i.stack.imgur.com/8dlA6.jpg" alt="enter image desc... | 3 | 2,494 |
ListView scroll is slow when flinging | <p>im using a listview to display a picture and a name. The problem im having is when i fling the listview it has a very choppy scroll. Im using the Android query lib to load the images. I get a lot of GC_FOR ALLOC freed in the logcat. Not sure what is causing it. Any help please? </p>
<pre><code> listview xml :
... | 3 | 1,457 |
Invalid indirect reference on real device but correct execution on emulator | <p>I'm making a web data based App, it involves downloading some information and making a dynamic view with it, so far no problem, it does in fact executes correctly on the ADT emulator, but when I loaded it into a real device this issue comes around. The solutions posted on this issue are specific to the problem given... | 3 | 7,126 |
setPosition does not update on iphone safari browser | <p>I have a html page that uses Firebase to get updated geolocation data. that data is then used to update a marker in a google map. The map works fine (map renders, and markers move accordingly) in the chrome browser on a laptop, but when I visit the same link on my iphone safari browser, I do not receive the updated ... | 3 | 2,428 |
Dynamiclinq library with generic repository | <p>Does anyone have any examples of using the dynamic linq library with a generic repository pattern?</p>
<p><a href="http://nuget.org/packages/DynamicLINQ" rel="nofollow">http://nuget.org/packages/DynamicLINQ</a></p>
<p><a href="http://weblogs.asp.net/davidfowler/archive/2010/08/19/dynamic-linq-part-2-evolution.aspx... | 3 | 1,160 |
Jenkins Github Enterprise Oauth Issues | <p>Trying to get jenkins set up with github enterprise oauth and im getting a 500 error after allowing authorization. Not sure where to start, or how to even disable it temporarily to fix the issue...</p>
<pre><code>Status Code: 500
Exception: no protocol: oururl.net/user?access_token=afbbb0e1eae4a22da6e06ac18bc72f51... | 3 | 2,377 |
Segmentation Fault when Cross Compiling for Raspberry Pi the simplest program | <p>I'm experimenting with the most simplest program I can came up with, to check out cross-compiling and remote debugging on a raspberry pi 1b.</p>
<p>I know that this might be seen as "duplicate" of <a href="https://stackoverflow.com/questions/38616768/segmentation-fault-when-cross-compiling-for-raspberry-pi... | 3 | 2,036 |
how to make table head fixed while using navbar in bootstrap 4 | <p>I am trying to have a navbar and a table. The table is long and wide so it needs to be scrollable both and x and y. </p>
<p>I have seen other answer on stackoverflow but I am not able to do the same for my website. </p>
<p>I am not sure even if the custom CSS is being used properly.
The table is taken from example... | 3 | 3,597 |
create multiple outliers plots and data frame with outliers in R | <pre><code>mydat=structure(list(Variable_16 = c(1474L, 1392L, 951L, 830L, 624L,
2429L, 2270L, 925L, 704L, 972L, 1081L), Variable_17 = c(0.78,
0.78, 0.55, 0.49, 0.4, 1.61, 1.52, 0.64, 0.49, 0.7, 0.8), Variable_18 = c(20175L,
16780L, 16459L, 16173L, 13291L, 14681L, 14574L, 14949L, 12904L,
12684L, 12544L), Variable_19... | 3 | 1,869 |
Extract embedded TIFFs in TIKA 1.12 vs TIKA 1.14 | <p>My goal is to convert pdf to xhtml such that embedded images can be linked correctly in the html.</p>
<p>The code below works in TIKA 1.12 but not 1.14. It appears the problem is that in 1.12, PDFBox 1.8 was used, and in 1.14, PDFBox 2.0 is used.</p>
<p>In 1.14, I get font errors and tiff errors, e.g.</p>
<pre><c... | 3 | 2,088 |
vb error: can't convert nvchar to numeric | <p>Can anyone shed light onto why I get this error about how it can't convert a <code>nvarchar</code> to <code>numeric</code>?</p>
<ol>
<li>there are no <code>nvarchar</code> columns in the db table</li>
<li>running on SQL Server 2012 migrated from MySQL 5+</li>
<li>All columns allow NULLs so an empty form should stil... | 3 | 6,169 |
Accessing a boolean property of an object in javascript always returns false? | <p>I'm losing my mind. I have an array of objects called <code>allAvailabilities</code></p>
<pre><code>console.log(allAvailabilities[0]);
</code></pre>
<p>results in a object with various properties, one of which is:</p>
<pre><code>...
isTrainee: true
...
</code></pre>
<p>but</p>
<pre><code>console.log(allAvailabilitie... | 3 | 1,045 |
Hide animated arrow when user scrolls up | <p>I am working on a little project where my website loads at the bottom and the user scrolls "up" to view more content. To indicate that you have to scroll up, I've animated some arrows that point upwards.</p>
<p>My problem is I can't seem to hide the arrow once the user has scrolled up to the next section.<... | 3 | 2,846 |
python HTTP request is not working properly | <p>So I am trying to code that registers an account on a squarespace website. I fired up Fiddler and intercept the HTTP requests, saw the <code>POST</code> request that sends the form data:</p>
<p><img src="https://i.stack.imgur.com/8BBSK.png" alt=""></p>
<p>so I wrote this code in Python: </p>
<pre><code>import req... | 3 | 1,737 |
HTML divs not staying inside jumbotron | <p>I'm having a problem where the divs (in this case <code>img</code>s) in my jumbotron are not being constricted to it. Ideally, the image would sit in the same horizontal position it is now, but the jumbotron would extend downward (or the image upward I suppose, but I want it to all be relative) in order to encompass... | 3 | 1,421 |
Changing sql query to yii2 format | <p>Am using dataProvider and i would like to convert a query in sql so that it follows the dataProvider way of representing data</p>
<p>This is the raw sql</p>
<pre><code> SELECT
tblpritems.PRlineID
, tblpritems.Tracking_Code
, tblpritems.Description
, tblpritems.Quantity
, tblpritems.U... | 3 | 1,081 |
Github Pages Vue.js Project | <p>I am attempting to deploy a vuejs app to github pages. I have followed every stackoverflow post, and every tutorial I have found online. No matter what I do, the page only displays the readme file.</p>
<p><a href="https://github.com/elleryba/elleryba.github.io" rel="nofollow noreferrer">github repo</a>
<a href="http... | 3 | 1,561 |
Bypass sign In through external authentication using .NET Core Identity | <p>Now ExternalLogin.cshtml.cs has 3 methods -</p>
<ol>
<li>To open the 3rd party authentication URL</li>
<li>Get after 3rd party authenticating</li>
<li>Post after 3rd party authentication</li>
</ol>
<p>I am trying to stitch 2 and 3 as I don't want to specifically register the users, but create their account as soon a... | 3 | 1,533 |
Pop multiple fragments from stack | <p>I am writing an application with Xamarin.Android and MvvmCross, but this question applies for native Android in general. I want to be able to declare a root fragment, so that I can later pop off all fragments on top of it on the stack. For example, if I have the fragments:</p>
<p>A|B|C|D</p>
<p>And I am currently ... | 3 | 1,101 |
How to maintaining listView (java/android) | <p>I have a listview in the SubActivity of my app.. but when I go from the subActivity to the main Activity and i try to return to the subActivity, the item of the listView disappear.. how to fix this problem?
also if I close my app and i restart it, my listview is empty... why?</p>
<p>my MainActivity:</p>
<pre><code... | 3 | 1,138 |
Adding element to DOM but JS doesn't know it's there | <p>I am adding an element to the DOM on mouse up of a button being clicked.</p>
<p>The element is adding to the DOM I can see it when I inspect. However within the same mouse up - after adding the element to the DOM - I want to manipulate that element, but I am unable to do so because the new element with it's unique ... | 3 | 1,171 |
Orbeon forms, dropdown items set from selected checkbox values | <p>Im working with the FormBuilder: Orbeon Forms 2016.2.1.201609272302 PE.</p>
<p>Ive been trying to create a dynamically populating dropdown list from the checked (selected) values in a checkbox control field (i.e., every checked value is on option in the dropdown)</p>
<p>Heres the example i've been working with, </... | 3 | 5,354 |
Merging data frames on a specific key in R/Stripping asterisks from Column | <p>Hey guys I need help merging in R and here is a reproducible sample of my code which I will explain.</p>
<p>My issue I'm running into is certain guys in the fixedstats df are hall of famers and therefor they have asterisks in their name. I want to clean that so I can join them to the draft database and grab their d... | 3 | 2,446 |
Laravel 8 validation input for excluding data which are not in a table, must be uppercase, and formatting id | <p>In Laravel 8, I have validation for storing data like this in <strong>public function store_notamasuk</strong>:</p>
<pre><code> Request()->validate([
'namabarang_supplier' => 'required',
'jumlahbarang_supplier' => 'required|numeric|min:1',
],[
'namabarang_suppl... | 3 | 1,191 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.