title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
JavaScript for element repetition (for-loop) and record responses
<p>I am very new to HTML and js, facing problems that I have struggled with for days. None of my attempts works. It is so hard for a novice to comprehend information found on the internet.</p> <p>The goal is to replace the repeated div, i.e. <code>&lt;div class=&quot;page&quot; id=&quot;page1&quot;&gt;, &lt;div class=&...
3
1,572
the app crash when I tried to apply splash screen using a Launcher Theme
<p>I'm trying to apply a splash screen to my app, like this <a href="https://medium.com/@shishirthedev/the-right-way-to-implement-a-splash-screen-in-android-acae0e52949a" rel="nofollow noreferrer">article</a>says, there is two way and I picked the launched theme. after I followed all the step the crashed! here is the ...
3
3,472
How to create a custom TextInput having facility to act as both secure field (with eye icon) and normal TextField in SwiftUI
<p>I am new to SwiftUI. I wanted to develop a custom TextField which accepts a parameter for changing itself as a secure field with show and hide password facility. But I am stuck with an issue now. As the caller of my custom textfield will pass a State variable as parameter, i have to use @Binding here inside my class...
3
1,920
Beautifulsoup, grab text with link
<p>i'm making a web spider to automate some of my work. I have a table with lots of drivers and different version for different operating systems. So far everything works fine but i'm having a hard time separating the links for each operating system. I'll post part of the html here, but i can't post the whole page. The...
3
1,342
Perl catalyst controller redirect not working
<p>I have looked over this code and I can not understand the weirdness it exhibits. For a lack of understanding all I know</p> <pre><code>$c-&gt;res-&gt;redirect('qbo/home'); </code></pre> <p>is being ignored, in favor of the redirect in the following if <strong>else</strong> condition. In other words, I always end u...
3
1,035
Using strtok( ) to extract substring from double quotes
<p>I'm trying to make a code, that should read all of the columns, row by row in csv file; then storing them under a struct array, that is called movies in this code. I actually managed to store the data, but just because of picking the parameter of delimater in strtok lines, some of my movies' data has missing; Exampl...
3
2,243
How to PREVENT NavigationLink form pushing view on stack based on a boolean
<p>I have a user-signup NavigationView where they enter their account info in separate views in a NavigationView stack.</p> <p>After they enter in a email/username I check the email is available on the backend and return a boolean if it is available.</p> <p>I want to prevent the next view from pushing onto the stack ba...
3
1,305
Optimizing aggregation query against wikidata
<p>I am running an aggregation query against wiki data. The query tries to calculate the average duration of films, grouped by their genre and the year of publication</p> <p>The multiple grouping/subqueries in the query are intended to retain an <code>n-1</code> relationship from film to the grouping criteria (year an...
3
2,220
Conditional rendering with React Hooks : loading
<p>I am learning how to use React Hooks and have been stuck for many hours on something that's supposed to be very simple. I am trying to display a a text if the state variable "loading" is true. If it's false, I want to display something else. No matter what I try, "loading" is always false or at least, the UI does no...
3
1,893
Unique Cross Join in SQL Table
<p>I'm trying to join two 'tables' in SQL in order to use the different columns to represent different parts of a line chart in SSRS Report Builder, including a shaded range, median line and a plotted line of results so it looks like the below image.</p> <p><img src="https://i.stack.imgur.com/jpx5l.png" alt="Expected ...
3
2,564
Searching in a historical table for a row in a timestamp, is so slow
<p>I'm working with historical tables which are storing each change from "real" tables.</p> <p>At the moment of retrieving data in a list of timestamps, the performace is horrible.</p> <p>Here a simplified version of my tables.</p> <pre><code>CREATE TABLE `changes` ( `ts` datetime DEFAULT NULL ) ENGINE=InnoDB; CR...
3
1,480
Displaying from database issue
<p>I am doing an assignment in Eclipse Indigo with Java. I have to create a program for a school and that program is a spelling test program. I have been able to allow staff &amp; students to log on and also change their passwords and edit their accounts. I have also been able to create tests and also access them to ed...
3
1,120
How do I use the celery (java version) in Kotlin
<p>I am trying to do a tiny poc (a add operation in a celery task) with Kotlin -&gt; celery -&gt; python.</p> <p>Python-&gt;celery-&gt;Python is ok. But with <a href="https://github.com/crabhi/celery-java" rel="nofollow noreferrer">https://github.com/crabhi/celery-java</a> and this &quot;wrong&quot; code:</p> <pre clas...
3
1,397
NOT NULL constraint failed: posts_comment.post_id django
<p>I have the basics of a blogs app (I have been following Corey Schafer's tutorial, part 10, if that matters) and I am trying to post and display comments on the post that other users have wrote that only relate to that post. Similar to that of a comment section on Facebook or YouTube.</p> <p>Currently I'm displaying...
3
1,140
Why isnt my table staying in it's div, when resizing my browser?
<p>So i build this simple table: <a href="https://i.stack.imgur.com/eqwwv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eqwwv.png" alt="Table before resizing"></a></p> <p>The Problem is, when i resize my browser to a certain amount, it starts looking like this: </p> <p><a href="https://i.stack.im...
3
9,657
Aspnet core MVC Partial view for sub class data
<p>I have a model that looks like this: </p> <pre><code>public class Product { [Key] public int Id { get; set; } [Required] public string CatalogId { get; set; } [Required] public string Name { get; set; } [Required] public string Description { get; set; } [Required] [EnumDataTy...
3
2,421
How to serve static files using Spock and Lucid?
<p>Getting started with web development using Haskell, Spock, and Lucid, I can't figure out how to serve my static files. In the directory of <code>Main.hs</code> I have <code>/static/css/main.css</code>, which contains just a background colour to see if the css is indeed applied. So my directory tree looks like</p> <...
3
1,139
How Can I Clear The Selected Field In Input Using Angularjs?
<p>I am using MEAN stack in my application with AngularJS as my front-end. How Can I clear selected filed in input element,<a href="http://plnkr.co/edit/pwlZnMFG03TzOjrDzSfB?p=preview" rel="nofollow">My Plunker</a></p> <ul> <li><p>Look at my plunker for reference.</p></li> <li><p>I have used Start date and End date in...
3
1,054
Providing symbol of linked shared library to shared library opened with dlopen
<p>Consider the following files</p> <pre><code># Makefile all: libdyn.so libmain.so app libdyn.so: libdyn.cpp g++ -fPIC -shared -o libdyn.so libdyn.cpp libso.so: libso.cpp g++ -fPIC -shared -o libso.so libso.cpp libmain.so: libmain.cpp libso.so g++ -Wl,--no-as-needed -fPIC -shared -o libmain.so libmain....
3
1,417
Group by to specific column in SQL Server
<p>I have following tables <code>candidatedata</code> and <code>interview_data</code></p> <p>candidatedata column</p> <pre><code>candidate_id |indent_no |canName |canMob -------------------------------------------------------------- 9 |MIT-301 |AMIT PANDIT SAWANT |NULL 112 ...
3
1,470
Why am I unable to use tf.nn.conv2d when I call it through an other function?
<p>I am trying to do data augmentation over a dataset. I have different kind of modifiers, one of them is the Gaussian Blur. I used to map it with <code>tf.nn.conv3d</code> but in order to make it faster, I changed it to <code>tf.nn.conv2d</code> (using 3d was not optimal). However now, when I run it, I get </p> <pre>...
3
1,468
Assign the response times to each question in a Moodle questionnaire using groupby pandas
<p>I´m trying to assign the time it takes to answer each question from a Moodle post-Process log. I have organized the data in the following way</p> <p>Example DATA (2 students and 4 questions)</p> <pre><code>original= [{&quot;Student&quot;:&quot;S1&quot;,&quot;Send&quot;:&quot;0:00:00&quot;},{&quot;Student&quot;:&quot...
3
1,200
PHPhotoLibrary error: content editing in performChanges results in error "The operation couldn’t be completed. (Cocoa error -1.)"
<p>This is the code that I run on viewDidAppear of a brand new swift app. The <code>info.plist</code> is setup correctly with the <code>Privacy - Photo Library Usage Description</code> key.</p> <p>The error I get is <code>The operation couldn’t be completed. (Cocoa error -1.)</code></p> <p>I can create new assets, de...
3
1,086
"must be an array type but is resolved to char" Tic Tac Toe Program Error
<p>So, I'm creating a tic tac toe program according to the instructions provide to me. Looks like most of the code is complete except i'm getting an unusual error when compiled.</p> <p>"array required, but char found" when compiled on all lines that start with "placeHolder"</p> <p>eg:- placeHolder[1][0] = 'X';</p> ...
3
1,664
iOS - ASIHTTPRequest - Trying to parse through responseString
<p>I've spent about 16 hours researching and attempting different code changes, but cannot figure this one out. I have an iOS app that consumes a website using ASIHTTPrequest: </p> <pre><code>-(void)refresh{ NSURL *url = [NSURL URLWithString@"http://undignified.podbean.com/"]; ASIHTTPRequest *request = [ASIHTT...
3
1,087
How to achieve optimized many to many querying in GraphQL (HotChocolate)
<p>Imagining that I have a <strong>N-N</strong> relationship between Student and the Course, .NET structure is typical N-N translated to CLR types <strong>Student</strong>, <strong>StudentCourse</strong> and <strong>Course</strong>.</p> <h4>Desired result:</h4> <p>What I want to achieve when querying for all students l...
3
1,718
Angularjs how to preserve url in function?
<p>Hi I am developing one Angularjs application. I have three cascading drop downs. Based on the selected values in drop down i am binding div with data received from api(div with ng-repeat). I have implemented paging. </p> <p>On page load i am binding first dropdown.</p> <pre><code>var arrMakes = new Array(); ...
3
1,170
vb.net (4.0 framework) form not loading
<p>hoping someone might be able to shine some light on this issue.</p> <p>I have a form in vb.net (using VS2010, .net 4.0 framework) that will not load, but instead errors out in the variable declarations. I have the following two lines in my declarations</p> <pre><code> Dim rpRBuilders As New rpRBuilder_2010.rp_R...
3
1,270
can't use @user in form_for in rails 4 getting a nil error
<p>I know that there are many questions a but every solution that i've tried did not work. I am trying to create a sign in form, but I am getting the following error First argument in form cannot contain nil or be empty</p> <p>replacing <code>@user</code> with <code>User.new</code> will solve the error , but than I c...
3
1,355
Dojo BorderContainer widget won't render
<p>I've created a layout with Maqetta. Now I want to add the logic to the layout. Therefore I have downloaded the whole workspace from Maqetta and imported the files/libaries into a new Rails project. At first I had some problems, that Rails didn't loaded the dojo,js file, but I've solved that problem.<br> Now I have a...
3
1,325
Does dojo require internet? (struts2)
<p>I don't know why when I try to run an exact project ( struts2+hibernate+mysql) it gives me the 404 error, however in others projects I don't have this problem.. Is it because of MySQL jar or maybe because of struts2-dojo-plugin-2.3.4.jar( as said in "Caused By") ? I need a solution for this, because I'm always oblig...
3
3,129
Gitlab ci doesn't install all dependencies (angular app)
<p>I'm trying to build and deploy angular application using gitlab-ci here is my config</p> <pre><code>stages: - build build: stage: build image: node:12.21.0 only: - master script: - npm install -g @angular/cli@11.2.6 - npm install - npm run build:i18n </code></pre> <p>and here are my depend...
3
1,868
Sending a Post Request to register a new user to a Web API, but receiving 400 : BadRequest
<p>Having issues with my code <code>[ Throwing an Unhandled exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request) ]</code> when trying to connect to WebApi</p> <p>This is my first time working with await/async methods, but I am needing to return <code>string ...
3
1,170
Phone app prompt works half the time swift
<p>Im making an app which imports all contacts stored on a device to the app UITableView And when cell is selected the dialler should pop up with a selected phone number. However it works half the time</p> <pre><code>import UIKit import Contacts import ContactsUI struct ContactsArray { var name: String var fam...
3
1,485
Form tag not routing correctly on Rails5
<h2>What I wanted to do:</h2> <p>Implementing search form on rails. If a user clicks the search button, rails will read the value from the text-input and pass it as a query. When I click the button, it should go to <strong>localhost/internships/search/keyword?keyword=blahblah</strong></p> <h2>What goes wrong</h2> <p...
3
1,117
I try to login but it does not run the whole query
<p>When I put something wrong, I receive everything in onResponse but it does not go for the function resultado() and when I put all the data well, it goes to the function resultaod() but only until the time to assign the values ​​to usuario and from the toast it is not executed.</p> <p>Login Activity</p> <pre><code>...
3
2,575
How can I download and set an Image on a ImageView on Android app?
<p>Hi guys surfing the internet I found some snippet to download and set an Image on a ImageView on Android. But it seems that doesn't works because it don't find the resource... Here is my snippet</p> <pre><code>String user_image_url = "http://www.nuoto.it/foto_news/papera"; URL url; try { url = new URL(user_imag...
3
1,717
Capture Variable Changes In Lua
<p>I'm unsure where to look as far as what I could use to capture a variable change in a program loaded within another program.</p> <p>Here's my code, as messy as it is: </p> <pre><code>function launch() shell.run("clear") print("Preparing for first time run.") sleep(1) print("") local program = n...
3
1,936
How to get the data value in Jstree
<p>I tried to get the data for the selected node in jstree. I can able to get the ID using data.rslt.obj.attr('id') But if i want to retrieve the email id of user101, How to get the data values according to selected node? I tried data.rslt.obj.attr('data'), but not able to achieve, please advise.</p> <pre><code>{ ...
3
1,463
Laravel testing url to resource in public directory
<p>I'm using Laravel Dusk to test all links on a page, these links are PDF files that are that are copied from resources/docs to public/docs with laravel mix.<br /> The problem is that trying to access the URL of the docs using get(uri) method gives a 404, here is a simplified version of my Dusk:</p> <pre><code>protect...
3
1,061
Prims algorithm : Graph Theory
<p>Below is my Code for Prims algorithm, I am writing my own linked list as i have been asked to. It works fine for smaller number of vertices , but when vertices are large it fails.( I get 812800 as the answer for all large numbers as vertices).</p> <p>Input Format:</p> <p>First line has two integers , denoting the ...
3
8,372
Automatically adjust block height of <aside> to same as <main>using CSS
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>body {padding: 0;margin: 0;border: 0; padding-top:48px;} .header {height:48px; width:100%; background-color:blue; position:fixed; ...
3
2,735
Why my query return empry list and gives no error? Java Spring Jpa Repository
<p>Here is my entity class:</p> <pre><code>package com.test.model; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import com.fas...
3
2,104
How to read a columns data into a variable and share it in all test functions (single spec), in Test Cafe
<p>I've read multiple posts on here about reading in table data, however, every post is how to read and use that data within a single test function. How do I read a table in, and use it in any test function within a test spec?</p> <p>If I write this into a test function it works and gives back all the info correctly:</...
3
2,069
How to prevent warning VSTHRD101 when using Control.BeginInvoke() to call an async method?
<p>I'm refactoring some old WinForms code to use async/await, and I've hit a code analysis warning that I'm not sure how to fix properly.</p> <p>The situation is that I have a method that is called from a non-UI thread which needs to update the UI. The old code uses the time-honoured technique of calling <code>Control....
3
1,455
Creating foreign key references to optimize Tableau SQL queries
<p>I'm a newbie on database design hoping to learn by experimenting and implementing, and I'm sure some version of this question has been asked within database design in general, but this is specific to Tableau.</p> <p>I have a few dashboards that are drawing from a PostgreSQL database table that contains several mill...
3
1,098
Correct srcset sizes media query pattern order
<p>Both of the following srcset+sizes combos result in chrome loading the bigger (2560px) image under any resolution (1920,1440...) according to devtools network tab. Resolutions are simulated via device toolbar, DPR:1.0, Desktop.</p> <p>I am using private navigation, just in case.</p> <pre><code>&lt;img srcset=&q...
3
1,234
Internet Explorer Breaks my links and logo
<p>Here's my problem. I've made a website as an assignment for my web class, and it renders correctly in basically every web browser with minor layout issues here and there. But the second I pull up my index page in IE it breaks the links and doesn't display my logo. It only links to 1 other page with the same issue. B...
3
9,933
react: the DOM loading is too fast, leaving no time to load the items from API
<p>I am new to the community, however I am French speaking, if the understanding of English is not correct, it's because I am using a translator.</p> <p>I am busy redesigning a website, however, it was originally hardcoded all in html, javascript and jquery.</p> <p>I convert it with React 17.0.x</p> <p>however, I have ...
3
13,850
SQLite Error 19: 'NOT NULL constraint failed: ef_temp_Posts.UserId
<p>I am making a simple blog app, the migration is generated successfully, but when I write &quot;dotnet ef database update&quot;, I get an error &quot;SQLite Error 19: 'NOT NULL constraint failed: ef_temp_Posts.UserId'</p> <p>here is my migration:</p> <pre><code> using System; using Microsoft.EntityFrameworkCore....
3
11,675
My Discord python music bot gets an error when asked to play
<p>I would appreciate the help in narrowing down this issue.</p> <p>My Discord Bot will run in my python environment without errors initially. However, when I try and enter a command to stream a song from youtube, I'll get the below error:</p> <pre><code>Traceback (most recent call last): File &quot;/opt/virtualenvs/...
3
1,302
Add multiple columns with map logic without using UDF
<p>I want to parse the address column from the given table structure using addressParser function to get number, street, city and country.</p> <p><strong>Sample Input:</strong></p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>addressId</th> <th>address</th> </tr> </thead> <tbody> <tr> <td>AD...
3
1,034
Docker Containers (MariaDb, AspNet) Can't Communicate on Compose Network
<p>I've setup a Docker-Compose file that creates a mariadb database and aspnet backend (both from docker files I've written). If I expose ports and run the containers outside of a compose (using localhost) or set network_mode: &quot;host&quot; in the docker-compose file then the app interacts as expected. However, usin...
3
4,457
Avoid MongoDB read skew in reactive transactions with Spring?
<p>I'm using MongoDB 4.2 with Spring Boot 2.3.1 and I'm looking for a way to avoid read skew in my scenario.</p> <p>I have a collection named &quot;metadata&quot; and one named &quot;messages&quot;. The latter contains messages like this:</p> <pre><code>{ &quot;aggregateId&quot; : &quot;myAggregateId&quot;, &quot;m...
3
1,636
BottomPagerRow is null
<p>I’m using code behind from Microsoft’s FormView.BottomPagerRow Property article. I’m getting error Object reference not set to an instance of an object on Label pageNum = (Label)pagerRow.Cells[0].FindControl("PageNumberLabel");</p> <p>How do I display the pager template when there is only one record on the page?</...
3
1,353
jboss kie workbench:how can i replace maven central repository url to my company local repo url in kie workbench
<p>my local server can not access the maven central repository(<a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a>) ,so i meet the below issue when i upload a artifact to KIE workbench ,and how can i replace the maven central repository url to my company lo<...
3
1,507
Foundation - fade out an overlay that was faded in previously?
<p>I manage to fade in an overlay when the button is clicked:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$(".button-toggle-overlay-menu").on("click", function() { $("#m...
3
2,184
Undefined reference despite netbeans showing function in code-completion
<p>I am new to c++, but I got some programming experience in other programming languages, so it is no problem to read c++ code with a little googling.</p> <p>For an uni project I need to write a game and we are supposed to use one of their libraries, called ACGL. We also use GLFW, which seems to work fine. (I copied t...
3
2,127
Replace javascript text with jquery or other in HTML code
<p>i have my main page (index.php) with look as :</p> <pre><code>&lt;?php start_session(); ... PHP CODE ... ?&gt; &lt;html&gt; ... HTML CODE ... &lt;script type="text/javascript"&gt; var bscTexts = { signup: { cropPicture: 'Crop your profile p...
3
1,459
Creating a stored procedure for the select statement in oracle
<p>I have created procedure like below ,but i'm getting an error has :</p> <p><strong>/1 PLS-00428: an INTO clause is expected in this SELECT statement Errors: check compiler log</strong></p> <pre><code>Create or replace procedure Sanction_test as begin select ROWNUM, cadid, CADRE,PAYSCALE, POST, PostId, depti...
3
1,501
Script does not show original image
<p>Guys I have a script that shows blogger articles, only the images of the articles are of poor quality.</p> <p>Looking at the script the only part that refers to the image is this</p> <pre class="lang-js prettyprint-override"><code>// Get the post thumbnails postimg = ("media$thumbnail" in entry) ? entry.media$thum...
3
5,355
Simplify setting values of object using key
<p>Is there any way to simplify the following code? May be by using underscore js, I went through the docs, but could not find anything which helps me solve with dynamic key value pair.</p> <p>Object : </p> <pre><code>this.state = { media : { video : "", photos : [{ tit...
3
1,144
How to get the id in PDF page in TCPDF
<p>I've just recently started using TCPDF , the out put page i shown and the table headings are shown and also work the query but the the get id is NULL why?</p> <p>iam pass a id by url like</p> <pre><code>&lt;h4&gt;&lt;a href="pdf_1.php?$h_id=&lt;?php echo $id;?&gt;"&gt;Conver PDF&lt;/a&gt;&lt;/h4&gt; </code></pre>...
3
1,251
Issue with displaying Textures using LWJGL and SlickUtil
<p>Ive tried a lot but dont find my error. Heres my Code:</p> <pre><code>public class Renderer { public static final int WIDTH = 1080, HEIGHT = 720, FPS = 60; public static void createDisplay() { try { Display.setDisplayMode(new DisplayMode(WIDTH,HEIGHT)); Display.create(); Display.setVSync...
3
1,943
Item Position in RecyclerView and SharedPreferences
<p>I have a RecyclerView that when the user clicks any item it will open an activity which the user must finish some tasks and if the user completes the tasks, it will be recorded in a SharePrefrences (Up to here there's no problem) then if the user returns to the recyclerView an image which I already defined in the la...
3
2,058
react-hook-form: Failed to set the 'value' property on 'HTMLInputElement'
<p>I am trying to use react hook form for user input to upload file</p> <pre><code>import &quot;./styles.css&quot;; import { useForm, Controller } from &quot;react-hook-form&quot;; import { Col, Row, Form, FormGroup, InputGroup, Input, Container, Button } from &quot;reactstrap&quot;; export default fun...
3
1,067
Why would serialized objects update the version of a schema on Schema Registry?
<p>I've built an Avro schema that I've stored on the Confluent Schema Registry (version 5.5.1) running locally. However it seems that the schema that is being used to serialize the record is actually different than what I expect it to be. The schema definition is several hundred lines long, so I'm sharing a very pared-...
3
1,749
Firebase Cloud Function is performing super slow compared to local response time
<p>I’ve just deployed a cloud function to my Firebase project (free tier).</p> <p>Here's a minimal version of the code:</p> <pre><code>const admin = require('firebase-admin'); const functions = require('firebase-functions'); const Fuse = require('fuse.js'); const _ = require('lodash'); admin.initializeApp(functions....
3
1,262
How can I import deleted items and customers from Quickbooks in Consolibyte Web Connector?
<p>As the title says, I'm trying to get deleted items and customers imported from Quickbooks. The main Quickbooks.php file has the following:</p> <pre><code>/** * Query QuickBooks for lists of deleted list items (customers, items, etc.) */ define('QUICKBOOKS_QUERY_DELETEDLISTS', 'ListDeletedQuery'); define('QUICKBOO...
3
1,110
snappydata Unable to access SnappyData store from an Existing Spark Installation using Smart Connector by Java
<p>I try to connect to SnappyData store by smart connector style as description in <a href="http://snappydatainc.github.io/snappydata/howto/#how-to-access-snappydata-store-from-an-existing-spark-installation-using-smart-connector" rel="nofollow noreferrer">http://snappydatainc.github.io/snappydata/howto/#how-to-access-...
3
7,988
How to get rid of this problem ( On adding a nuget packages from VSCode it says terminated with exit code: 1.)?
<h1><strong>When I trying to add <em>Nuget Packages</em> by <em>Nuget gallery</em> extension from <em>VS Code.</em> It doesn't install the <em>NuGet package.</em></strong></h1> <p>Executing task: dotnet add /home/[user]/Public/Projects/yogihosting.com/Identity/Identity/Identity.csproj package Microsoft.AspNetCore.Ident...
3
1,109
eSQL multiple join but with conditions
<p>I've 3 tables as under</p> <p>MERCHANDISE </p> <pre><code>+-----------+-----------+---------------+ | MERCH_NUM | MERCH_DIV | MERCH_SUB_DIV | +-----------+-----------+---------------+ | 1 | car | awd | | 1 | car | awd | | 2 | bike | 1kcc | |...
3
1,443
Syntax Error on my php script
<p>I am getting this error message when run the code below. Below is the code that is giving me error messages. This is the error message </p> <pre><code>Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\jq\fines\admin\portal.php on line 218 </code></pre> <p><strong>My code:</strong></p> <pre><co...
3
3,348
React Error: Child compilation failed: Must use import to load ES Module
<p>I have done a react project on my ubuntu system and uploaded on github, now I am cloning that same repository on my windows system and doing npm install and npm start. It is showing this errors.</p> <p><strong>Check these images</strong> [1]: <a href="https://i.stack.imgur.com/3cKFp.png" rel="nofollow noreferrer">ht...
3
1,115
AlarmManager and BroadcastReceiver where intent has no extra at all
<p>I try to send notification in an exact time, therefore I added an AlarmManager. AlarmReceiver is triggered, the intent action is set, but has no extra at all.</p> <p>I made a simple separated AlarmService class for the AlarmManager AlarmService.kt:</p> <pre><code>private const val TAG = &quot;AlarmService&quot; cla...
3
1,995
image file not correct when upload into AWS S3 using axios
<p>Im new for using AXIOS. Currently, i'm developing laravel framework combine with AXIOS code.</p> <p>I use axios code for getting image URL and store it into AWS S3. i can able to store the image into S3, but the image file is not correct. the image file just a icon image. not the image from the image URL.</p> <p>her...
3
1,095
How can align these elements so as to be in line?
<p>I have this link: <a href="http://www.dg-design.ch/category/all-articles/new-projects/" rel="nofollow">site</a></p> <p>As you can see in the picture below. elements are not arranged in line</p> <p><a href="http://i62.tinypic.com/xyfeu.jpg" rel="nofollow">http://i62.tinypic.com/xyfeu.jpg</a></p> <p>I tried to add ...
3
4,690
PHP SQL displaying outside of intended div when new record is displayed
<p>I have a site where a user can post an image, along with some other information about said image. I have a sidebar for users to navigate to other parts of that specific side of my site.</p> <p>It looks like it is displaying outside the <code>div</code> that I intended and envisioned all posts would be under, and it'...
3
7,546
Can I use "inheritance" to add specific properties to nodes in json-ld with Schema.org using references?
<p>I am struggling with using references in json-ld with schema.org.</p> <p>I am trying to represent a person and a list of employments they've had at various organizations, where the person's job title is different for every organization where they've worked.</p> <p>Schema.org <code>Person</code> has a property <code>...
3
1,112
Firebase iOS Swift fatal error: NSArray element failed to match the Swift Array Element type
<p>I am trying to fetch data from firebase database the format of data is below.</p> <pre><code>{ "chits": { "Chit-1": { "Bidders": [ { "bankAccNumber": "5555566966", "bankIFSC": "GFHJJHHJ", "bankName": "55666", "bidderEmail": "desi@venkat.co.in", "...
3
2,899
Adding interface with existing method signature that is annotated with JPA breaks Eclipselink
<p>For a long time, I had the following classes with persistence use JPA and Eclipselink as persistence provider, which were persisted and queried sucessfully.</p> <p>ProductKeyImpl:</p> <pre><code>@Entity @Table(name = "PRODUCT_KEY") @Access(PROPERTY) public class ProductKeyImpl implements ProductKey { ... } </c...
3
1,086
Print array in text body of CDO email
<p>I have successfully loaded an array <code>myArray(30,1)</code> with data and would like to print the data in the text body of the CDO email.This is the section of code that works fine (it has been is service for months) before I attempt to print the array in the text body. You can see I was simply passing the varia...
3
1,280
Not receiving the value after submitting the form in php
<p>I have a simple form that takes value from ajax and submit it through form. Now i am not able to get the value after form submission.</p> <p>Here is my HTML form</p> <pre><code>&lt;form name="frm1" action="process_view_detail.php?cand_id=&lt;?php echo $_SESSION["id"] ?&gt;" method="post"&gt; &lt;?php $q=$_GET["x"...
3
1,664
Get cropped Image Bitmap using U2Net Model in android
<p>I have implemented the code using this <a href="https://stackoverflow.com/questions/68768237/usage-of-u2net-model-in-android">link</a> and got the greyscaled masked bitmap successfully but cannot get the original background image bitmap from greyscaled masked bitmap. I have used this <a href="https://github.com/farm...
3
1,270
ROS# ROS to Unity communication : problem with creation of a new MessageType
<p>I'm currently working on a sonar named &quot;Imagenex 831L&quot; and I'm trying to extract the data published by a driver with ROS and send it to Unity with RosBridge and ROS#. So I'm trying to subscribe to this topic and visualize it on Unity.</p> <p>My problem is that the topic generated by the driver isn't a nati...
3
1,272
how do i fix "cannot read property match of undefned" in this code
<p>i'm trying to integrate <strong>nativescript-imagepicker plugin</strong> with my Nativescript App, but i get error **cannot read **property match of undefined**** below is what i have already tried, thanks.</p> <pre><code>function onSelectSingleTap(args) { var context = imagepickerModule.create({ mode...
3
1,512
IE11 scroll stuttering on overriding default keydown scroll
<p><strong>EDIT: I'm remaking the whole question.</strong></p> <p>The context to the problem is more complex but, for the sake of simplification, <strong>let's say I want to override some of the default scrolling animations</strong>.</p> <p>For that purpose, I create a function- filterKeys()- that filters the 'scroll...
3
1,375
XAML Master / Template pages with MVVM
<p>Is there a way to create master / template pages in XAML (for UWP applications)?</p> <p>The problem I'm trying to solve:<br> I have an application with a lot of similar sites, where only the content changes slightly but not the Buttons and the Layout. Example:</p> <pre><code>&lt;Page DataContext="{Binding Webp...
3
1,067
XSLT add attributes to processed nodes
<p>this is sample xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/n...
3
2,736
sql correct but in php it skips the first result
<p>I use this: <code>foreach ($result as $row) { $row["testID"], $row["subject"], ... };</code> to output all the values. <br> The sql works fine but when I go to the page it always shows me all the output without the first element that is in the array. <br> For example if I have 5 tests to show to the user it only sh...
3
1,975
Using "for" loops in R package and error message "Error in `[.data.frame`(, c("date", i)) : undefined columns selected"
<p>Question relates to using &quot;for&quot; loops in R package and handling error message&quot;undefined columns.</p> <p>Sample date frame consists of 4 rows and 10 columns. Libraries used magritter and dplyr.</p> <pre><code>library(magrittr) library(dplyr) date &lt;- c (&quot;2020-12-31&quot;, &quot;2021-01-29&quot;...
3
2,354
How to make 2 unrelated entities (two repository) run in one project at the same time ? Is it possible?
<p>I'm trying to make 2 entities (that's not related) in one project. i'm using Java springboot to connect to mysql database. so what's the best way i can do? because i tried to make 2 repository but i only succeed 1 of them. another one is giving me an error. its giving me error even it's actually fine when i run the ...
3
1,036
Error with application.py index in pset7
<p>I get this error when I buy a stock or when I try to go to my index.html:</p> <pre><code>Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 2000, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/lib/python3.4/dist-packages/flask/app....
3
1,620
How to delete the file inside data folder?
<p>I done the code where when I upload the file, it will be saved into folder call Data and can be download too (I didn't use database at all). When the file can be upload, and download, I can't make the delete button works. Is there any way to make this happen? Thank you. </p> <p>here is my design code :</p> <pre><c...
3
2,120
Accepting arguments in a console application with managed code in C++
<p>I attempted to use this code to accept arguments from a console application. Unfortunately all I get are boolean values for some weird reason. I'm not sure what's happening. I think I might be mixing namespaces or something. Anyone?</p> <pre><code>#include "stdafx.h" using namespace System; using namespace System:...
3
1,888
Add two new fields inside the array object if conditions meet in mongodb collection
<pre><code>[ { &quot;Empname&quot;: &quot;Doug&quot;, &quot;Group&quot;: [ { &quot;Category&quot;: [ { &quot;Categoryid&quot;: 123, &quot;Categoryname&quot;: &quot;science&quot; }, { &quot;Categoryid&quot;: 233, &quot;...
3
1,280
Merged column doesn't display properly
<p>This is my first data frame df1</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ID</th> <th>Name</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Sam</td> </tr> <tr> <td>2</td> <td>Mam</td> </tr> <tr> <td>3</td> <td>Dam</td> </tr> </tbody> </table> </div> <p>This is my second data frame d...
3
1,076
How to translate this sort algorithm to mips assembly
<p>My homework for my Computer Architecture was to write a program in MIPS assembly that can sort a 2D array in ascending order. I wrote a bubblesort algo in Java that can do this; however, I still am very new to MIPS and have no idea how to use the same logic in MIPS syntax.</p> <p>Specifically, how might I construct...
3
2,197
unordered_set EXC_BAD_ACCESS in constrain_hash
<p><strong>EDIT: This is fixed now. Noticed on the apple forums that other people have experienced issues with Xcode 8.3. I reverted back to Xcode 8.2 from Xcode version 8.3 / 8.3.1 and the crash has stopped.</strong> </p> <p>I have an unordered_set that causes a EXC_BAD_ACCESS in the constrain_hash function found in ...
3
11,745
React global objects & events
<p>I'm new to React and still having some trouble "thinking in react" when it comes to global events &amp; scope. </p> <p>My goal is to maintain some global data about the "session" like whether a user is logged-in and their identity. </p> <p><strong>My main container looks like this:</strong></p> <pre><code>import ...
3
1,186