title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to get information from the both sides of @ManytoMany relationship? | <p>I'm new to JPA and I'm trying to build a @ManyToMany relationship between two entities: car.java and part.java.
I wrote a method, which saves the relationship in a third table: car_part.</p>
<p>car entity:</p>
<pre><code> @ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "car_part", joinColumns = ... | 3 | 1,095 |
Swiftui Side Menu button action | <p>I would like to create a side menu i did but i don't know how to add a button actions that take me to new view , <br>this is an example about what i want :
<br>Profile button to Profile view
<br>Messages to Message view,
<br>Setting to Setting view
<br>3 different views
<br>This is my Side Menu Code</p>
<pre><code... | 3 | 1,032 |
MVVMLight - ModernWindow - Validation | <p>I have an issue with view validation using IDataErrorInfo in my model object.
I have an application with several pages using ModernWindow control.</p>
<p>At startup, the validation is working fine. But once I navigated one time on the view, when I come back to one of the view already visited the validation don't wo... | 3 | 1,717 |
WM_DRAWCLIPBOARD stops firing after form is opened | <p>I am using <code>WndProc</code> and <code>WM_DRAWCLIPBOARD</code> to monitor the Windows clipboard and save text and images copied. It's working well except for one scenario. I am using <code>NotifyIcon</code> and have the application docked to the notification area by default (<code>ShowInTaskbar</code> = False, <c... | 3 | 3,783 |
Is it possible to call CodeIgniter's controller using php? | <p>Is it possible to call CodeIgniter's controller using php?</p>
<p>I'm thinking of calling the controller using php. I have a display all year calendar.</p>
<pre><code><table style="margin-left:-50px;width:1300px;" class="table table-bordered">
<tr class="blue">
... | 3 | 5,766 |
Donut Chart Multiple Radial Lines | <p>I have created a donut chart with multiple content, I dont want to use libraries so i created a native one with pure css ... Its done!</p>
<p>The problem is, i need to create radial buttons like this</p>
<p><a href="https://i.stack.imgur.com/QiHrp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qi... | 3 | 1,570 |
Update the score of Pinned Documents in Elastic Search | <p>I have a requirement to show some documents always on top of search results and for that, I have used pinned query to pin some documents and the pinned documents will have a score value of 1.7014122E38.</p>
<p>But I have another requirement to modify this score of pinned documents which I'm unable to achieve at the ... | 3 | 1,046 |
Google GCP Trace: Trace with nested user functions information | <p>Currently this is the picture I have when analysing GCP trace. It is useful but we need to have a deeper analysis on some spots we want to improve.</p>
<p><a href="https://i.stack.imgur.com/dD5Wr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dD5Wr.png" alt="Standard Trace without nested user fu... | 3 | 1,204 |
Language Change Button | <p>I put the code in the setting fragment but after i select language it doesn't change language although I have that language string folder. I believe i need to refresh activity but this is fragment and i don't know how to.</p>
<pre><code>public class Settings extends Fragment {
Locale myLocale;
@Override
... | 3 | 1,065 |
readObject function in Serializable not called when enable proguard | <p>I make a PersistentCookieStore for android app with: </p>
<p><strong>decodeCookie function:</strong></p>
<pre><code>protected HttpCookie decodeCookie(String cookieString) {
byte[] bytes = hexStringToByteArray(cookieString);
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);
Ht... | 3 | 1,337 |
JS not working. What is wrong? | <p>I have this code:</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>window.store = {
localStoreSupport: function() {
try {
return 'localSt... | 3 | 1,989 |
Replace values only if they are different | <p>I have a vcf file like this:
<a href="http://www.1000genomes.org/node/101" rel="nofollow">http://www.1000genomes.org/node/101</a></p>
<p>Here's the example from that site:</p>
<pre><code>##fileformat=VCFv4.0
##fileDate=20090805
##source=myImputationProgramV3.1
##reference=1000GenomesPilot-NCBI36
##phasing=partial
... | 3 | 1,363 |
Read a line from specific line until the end of file | <p>I want to read from specific line and so on. For instance I want to read from line 8 and until it gets to the end of the file. Could someone teach me the proper way on how to program it?</p>
<p>My current code:</p>
<pre><code>import java.util.*;
import java.io.File;
import java.io.FileNotFoundException;
public cl... | 3 | 1,046 |
Nav bar won't center in Bootstrap 3 | <p>I'm sorry for asking this question, but I've search through stack overflow for weeks and haven't been able to rectify my problem. My nav bar is left justified; I need it to center. I have tried applying margin: 0px auto; to every element within the hierarchy of the <code><nav></code> along with text-align: cen... | 3 | 1,551 |
How to stop Capybara from going to empty.html | <p>At the end of my scenario Capybara is automatically trying to go to <code>file:/ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.2.0/lib/capybara/empty.html</code>, how do I stop this?</p>
<p>I'm using the BrowserStack service and therefore this file doesn't exist on the VM the browser is actually running in so a window... | 3 | 1,235 |
Equivalent to out from C# in C++ | <p>I want to create a function in C++ to get a pointer to a class with some conditions. I have multiples instances for a class, identified by a number. Depending on number, I want to get the corresponding instance.</p>
<p>In c# it would be something like :</p>
<pre><code>class main
{
private Example item1;
pr... | 3 | 1,254 |
Grails - CSS rules not being applied | <p>I'm developing a Grails app and I'm having a problem with the CSS rules applied to a view. Consider this GSP code:</p>
<pre><code><div id="radio" style="height: 30px">
<div class="fieldcontain">
<label style="float: left; width: 25%; overflow: hidden">
<g:message code="r... | 3 | 1,048 |
Javascript addEventListener click problem | <p>There is a problem that I have been dealing with for 2 days but could not solve.
I am creating a quiz app where you can choose from 4 options.
The program works correctly when I make the first choice.
but when I make the second choice it reacts as if I clicked it twice.
When I make the third choice it reacts as if I... | 3 | 3,688 |
Only One form working at a time in react | <p>I have 2 sets of forms:One is for login and the other one is for user registration.Both of them have their own components,css files and routes.But surprisingly,at any given point of time,only the login form works even though the code is the same.I even removed the form tag still my submitted content is not shown.I h... | 3 | 2,839 |
Not able to append word document when I am inserting multiple image into word using java | <p>I used below code for taking snapshot of screen and save into a word file..
This code is used as button..
but when i take gain a screen shot it replace the existing file..
How can i append this ..pls suggest
thanks in advance. :) </p>
<pre><code>private void btnmanActionPerformed(java.awt.event.ActionEvent evt) {
... | 3 | 1,166 |
Wind rose convert degree in cardinal point whit PHP | <p>I did a script to convert degrees in cardinal point in PHP this way:</p>
<pre><code><?php
$deg = 0;
$cardinal = null;
$deg = str_replace(',','.',$argv[1]);
echo "Degree: ". $deg ."\t";
if(($deg>=0 && $deg <= 11.25) || ($deg > 348.75 && $deg <= 360) ){ $cardinal = 'N';}
elseif($deg ... | 3 | 1,048 |
Is there a way to have lexical `this` in methods using the ES6 shorthand method notation? | <p>First question on SO and I hope I’m not duplicating anything; I’ve looked at <a href="https://stackoverflow.com/questions/35534818/binding-context-when-calling-es6-method-how-to-access-object-from-within-method">other</a> <a href="https://stackoverflow.com/questions/35495919/best-way-to-bind-an-es6-class-method">que... | 3 | 1,314 |
Add records to existing Firebase Datamodel with Angularjs | <p>I have been scrambling my brains for hours trying to implement this code in the <a href="https://www.firebase.com/docs/web/guide/saving-data.html" rel="nofollow">Firebase Documentation</a> with my own solution.</p>
<p>I have a Posts.json as a data source in Firebase with the following structure example:</p>
<pre><... | 3 | 1,721 |
getting values from multiple forms | <p>i want to get values into the database from multiple forms</p>
<p>here are the forms</p>
<pre><code> <td width="191"><div align="left"><strong>First Name</strong></div></td>
<td width="336" colspan="2"><form id="form3" name="form3" method="post" action="Regist... | 3 | 1,528 |
PHP PDO Update function silently fails | <p>I'm at best a hobbyist who is just now bringing to use PDO and i'm have a heck of a time with insert statements. I have a function which is meant to update several columns in a table but my data does not seem to be binding correctly? I've looked over google, php.net, <a href="http://wiki.hashphp.org" rel="nofollow">... | 3 | 1,416 |
Static libpixman-1.a Linking Errors on Windows | <p>I am trying to build a static <a href="https://www.cairographics.org/" rel="nofollow noreferrer">Cairo library</a> on Windows under <a href="https://www.msys2.org/" rel="nofollow noreferrer">MSYS2/MinGW-w64</a> & am having trouble linking to <code>libpixman-1.a</code> static library. The linker errors are as fol... | 3 | 1,443 |
strange behavior of the offsetheight element | <p>I have a part of the page that looks like this (i use pug view engine)</p>
<pre><code><div class="product">
<div class="name">#{product.product_name}</div>
<div class="category">#{product.category}</div>
<div class="description">
| #{product.product_description... | 3 | 1,268 |
My MySQL server on digitalocean keeps crashing when running some woocommerce tasks, attaching mysql error log . any idea why? | <p>My MySQL server keeps crashing when running some woocommerce tasks, there isn't any traffic by far , like maybe one hit per hour or less, 99% hits are because of my from the admin panel, attaching mysql error log </p>
<p><strong>server details</strong> </p>
<ol>
<li>provider - digitalocean</li>
<li>OS - Ubuntu 19... | 3 | 3,665 |
Date picker on click (Like Google Calendar ) | <p>so i want a time and a date picker to pop up when i click on a button look google Calendar does when you press the fab button on the bottom right. There will be a new window which shows up a date and a time and when you click one of them a picker opens.</p>
<p>Im not sure if i need to create a fragment with a time ... | 3 | 1,201 |
How can I efficiently load this kind of ASCII files with python? | <p>I have big fortran-generated ASCII files formatted like this:</p>
<pre><code>x y z num_line index
1 float
2 float
...
num_line float
x2 y2 z2 num_line2 index2
1 float
2 float
...
num_line2 float
...
</code></pre>
<p>The number of blocks can go up to thousands and the number of lines whithin each block to hundreds... | 3 | 1,568 |
CSS Drop-down menu: second level positioning? | <p>So I'm working on a CSS drop down menu where the div container is revealed by a radio button and I have that working as I'd like. </p>
<p>However, I'd like to add a second level to my drop-down just like it (same width, positioning beneath parent, ect..) I have it revealing the second level when you click on the in... | 3 | 2,297 |
My fetch command doesn't work, what did i do wrong? | <p><a href="https://i.stack.imgur.com/EWSvW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EWSvW.png" alt="enter image description here" /></a>im trying to fetch customers and trainings by using a fetch request but for some reason it doesn´t print anything in the page. However it is printing those i... | 3 | 2,952 |
I am having a problem linking my HTML pages in Python Django web framework | <p>I am getting an error when I run my django application and I saw that I have a problem in my url configuration and templates linking.</p>
<p>app/views.py</p>
<pre><code> from django.shortcuts import render
from django.views import generic
from .models import Post
class PostList(generic.ListView):
queryset = P... | 3 | 14,728 |
QGroupBox Display | <p>Could some one help me on my code issue</p>
<p>I use 2 Push buttons (in Qt GUi Program) ( 1st, 2nd ) in the bellow code</p>
<p>Initial Image</p>
<p><img src="https://i.stack.imgur.com/6fWK9.png" alt=""></p>
<p>1) When I press 1st Push Button, the output in Gbox .. When 1st button pressed</p>
<p>1st push button ... | 3 | 2,617 |
Failed to retrieve data for content id - after deleting a property | <p>I'm currently working on a project using Umbraco and I ended up with this error after something went wrong when editing an Archetype property. The Archetype object cleared all of its properties for some reason and I deleted it with the intention to re-create it. After deleting it, my root-node and some of its subnod... | 3 | 3,073 |
CoffeeScript not working when appending content through ajax | <p>Hello I'm working with rails and have been trying to make ajax requests when submiting forms for comments so the result is appended to the list of comments. I've got it to work thanks to this video: <a href="https://www.youtube.com/watch?v=K-sns5tNdTY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=K-sns5... | 3 | 2,169 |
getting force closes when integrating with proguard? | <p>I am using three libraries in my app</p>
<pre><code> AndroidsupportV4.
Picasso
ActionBarSherlock
</code></pre>
<p>in project properties i added this</p>
<pre><code> proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-18
androi... | 3 | 1,412 |
Сorrect indexing of time intervals | <p>I'm new in pandas and trying to make aggregation. I converted Dataframe to date format and made indexing change for every day.</p>
<pre><code>
model['time_only'] = [time.time() for time in model['date']]
model['date_only'] = [date.date() for date in model['date']]
model['cumsum'] = ((model['date_only'].diff() == da... | 3 | 1,071 |
c# Cefsharp how to make correct sequence of JavaScript actions on the web site | <p>These sequences of actions work with Thread.Sleep, somewhere in 1 second, somewhere in 2 seconds. I think using Thread.Sleep/Task.Delay is not good. Because it can be performed differently on different computers. How do I execute these sequences without using Thread.Sleep?
Or it is OK to using Thread.Sleep/Task.Dela... | 3 | 2,931 |
Change the maximum line length limit using Gmail API | <p>I am trying to send emails by Gmail API with Python. But when I check the received email,I find that it seems that each row is automatically broken at 78th chars. The screen shot can be seen as below:<a href="https://i.stack.imgur.com/3cimo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3cimo.png... | 3 | 1,703 |
Jersey SSE client not working | <p>Am new to Jersey SSE Client API, I have a servlet which continuously send the events. I see it working when i invoke the URL from the browser. When tried to invoke the same using Jersey SSE client, its not working as expected, i don't see any exceptions being thrown.</p>
<p>Here is the code am using for this.</p>
... | 3 | 1,544 |
Is there a way to calculate yearly moving average in Python? | <p>I have some football data that I am modifying for analysis. I basically want to calculate career and yearly per game averages on a weekly basis for several stats.</p>
<p><strong>Example</strong></p>
<p>What I have:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Player</th>
<th>Year</th>... | 3 | 1,040 |
Python svgpathtools scaled method strange results | <p>I have converted the following path-d to a Path object using the <code>parse_path</code> of the svgpathtools module:</p>
<pre><code>M 0.0,36.0 C 0.0,164.082 96.0,250.0 251.0,250.0 C 404.639,250.0 544.0,213.0 544.0,-14.0 C 544.0,-234.0 385.95,-339.976 290.0,-405.0 C 169.0,-487.0 89.75200000000001,-522.634 -49.0,-576.... | 3 | 1,721 |
Azure DevOps pipeline unable to deploy Blazor Wasm app to Static Web App due to package from private Nuget feed | <p>I try to deploy a Blazor Wasm application from my Azure DevOps repo to an Azure static web app. My app is based on the standard template, but is also using a Nuget package hosted in private feed in Azure Artifacts. I have tried several combinations of pipeline tasks but none seem to do the trick.</p>
<p><em>Attempt ... | 3 | 1,452 |
Unable to access Username/Password page in wso2 identity server 5.10.0 in Kubernetes setup | <p>Have Configured OAuth2-OpenID Connect Single-Sign-On using WSO2 Identity Server-5.10.0 with my web application in Kubernetes setup.</p>
<p>While logging into web application, when i click on forgot username/password link in SSO login page, getting below error page.</p>
<p><a href="https://i.stack.imgur.com/lhg9J.png... | 3 | 4,846 |
Saving a Webcam image in react and send it to the backend Django | <p>In this code I take a picture by the laptop camera and it work correctly, but i want to save the picture in the database (I use react as frontend and Django as backend).
So, how can I send this image to the backend Django ?</p>
<p>and in Django who can i write it in the model ? (as ImageField() or FileField()</p>
<p... | 3 | 1,130 |
Uploading image to firebase storage: Unhandled Rejection (TypeError): Cannot read property 'state' of undefined | <p>I have a CMS where I create an article with a title, the content and an image. I then display all of that in the homepage. The images are being stored in Firebase Storage and I manage to do that successfully (when I check storage, they're there), however as soon as I submit the form, I see this error:</p>
<blockquot... | 3 | 4,359 |
How to enumerate with a reference to the previous element, in Elixir/Erlang | <p>I need to normalize a list of elements before applying <code>Enum.chunk_by</code> to the list.</p>
<p>Typically when we enumerate we go item by item, for example</p>
<pre><code>source_list |> normalize_item
</code></pre>
<p>How may we enumerate while referencing previous element in the list?</p>
<p>Also, how ... | 3 | 1,333 |
Java linked List implementation won't add data | <p>I created my own linked list in java(code below) and I was trying to store DNA?RNA sequences from a text file in an array of a custom data type that contains the enum DNA/RNA, as well as a linked list containing the actual DNA sequence. I don't know if the characters are just not being inserted into the linked list ... | 3 | 4,436 |
Why aren't new WPF Windows I create inheriting from Window? | <p>When I create a new Window, using the Add Item... dialogue, the Window I create, e.g. <code>NewWindow</code>, does not inherit from Window. It only has the same interface as type <code>Object</code>. An example:</p>
<p>I have the popup window code below. The code only sees the <code>IHavePassword</code> members, an... | 3 | 1,061 |
owl carousel2 inside navb-tab bootstrap 3.3.6 got bug | <p>i have slider inside tabs.</p>
<pre><code> <div id="tabs">
<!-- Nav tabs -->
<ul class="nav nav-tabs responsive-tabs capital bold text-center m-b-25">
<li class="active "><a href="#portfolio" role="tab" data-toggle="tab">portfolio</a>... | 3 | 3,123 |
Hibernate not creating PostgreSQL schema object using JPA | <p>I have the following code:</p>
<pre><code>@Configuration
public class HibernateConfig {
@Autowired
private DataSourceProperties dataSourceProperties;
@Autowired
private JpaProperties jpaProperties;
@Bean
JpaVendorAdapter jpaVendorAdapter() {
return new HibernateJpaVendorAdapter();
... | 3 | 1,908 |
Javascript Canvas Flashing When Drawing Frames | <p>Been having issues with this for a couple days, not sure why the text I'm rendering on the canvas is flashing so much. I'm using the requestAnimationFrame() function, but its still flickering.</p>
<p>What I want to have happen is for the text to move smoothly and they remove themselves from the array when they move ... | 3 | 1,088 |
Adding prefix to the duplicated row entries in R dataframe | <p>I have created the following Dataframe in R studio using the following commands</p>
<pre><code> Sample_df$First_Val<-NA
# WE NOW FILL IN THE VALUES AS NEEDED
Sample_df$First_Val[c(2,3,5,10,14,19,20,21,25,30)]<-paste0("[LO]_",
c(2,3,5,10,14,19,20,21,25,30))
## WE NOW FILL IN THE INTERIM VALUES HERE
... | 3 | 2,112 |
Unable to execute MongoDB query with @Query annotation in Spring | <p>I am facing a bit weird problem while executing the query in MongoDB using spring boot.</p>
<p>I have data set in the following formats.</p>
<pre><code>{
"_id" : "602b950000f37b023411f98f",
"recepeName" : "testplan2",
"orderDate" : "2021-04-20T06:32:... | 3 | 1,099 |
Multi-auth with verification email issue | <p>I have a <code>multi-auth</code> application with verification email functionality. I am using the laravel's default email verification functionality, <code>verified</code> middleware. The verification email is sent via Laraval's <code>sendEmailVerificationNotification()</code> method for each role.</p>
<p><em>Funct... | 3 | 1,344 |
No response after click button login | <p>I currently create a PHP Login using Joget SSO. The Joget already have its own script of SSO. I follow the steps and if the username and password is matched, it will alert "login sucessfully" else, it will alert "login failed". Below is my code</p>
<pre><code> <!DOCTYPE html>
<html>
<head&... | 3 | 1,081 |
Bloc stream how does it get populated | <p>I have the following home page within my app:</p>
<pre><code>class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final CategoriesBloc _categoriesBloc = BlocProvider.of<CategoriesBloc>(context);
return Scaffold(
appBar: AppBar(
title: Text('E-Commerce'),
ce... | 3 | 1,028 |
Template in a Template of a different types problem | <p>I have a template class called Temp, and it have a method takes an argument of the same type:</p>
<pre><code>#ifndef TEMP_H
#define TEMP_H
template<class T>
class Temp
{
public:
T data;
bool comp(T);
};
template<class T>
bool Temp<T>::comp(T data)
{
return (this -> data... | 3 | 1,060 |
Angular data from service not showing on the frontend | <p>Ive made 3 views and linked them to a single controller. In my controller, I am calling a service which I have made which makes a network call and gets some data which I am supposed to display on the frontend. The trouble is, that it is not showing this data despite me doing everything properly. </p>
<p>This is how... | 3 | 1,316 |
COBOL plugin reports parse errors | <p>Our team is running SonarQube instances for a variety of languages (java,pl/sql,C,C++).</p>
<p>Recently we were asked to run code quality analysis on COBOL code. </p>
<p>We have received some COBOL code from the development team and ran a Jenkins job.</p>
<p>During the analysis however we see some <em>parsing err... | 3 | 1,983 |
When trying to hide mobile navigation, it doesn't hide a list and a button. Why? | <p>fairly new to HTML and coding in general. I'm building a website to mess with and my goal right now is to make it mobile friendly. I'm currently working on a menu that is supposed to only appear on mobile or when a desktop user resizes the window. But here's my problem, it hides the menu like I want it to but it doe... | 3 | 4,598 |
JHipster is producing error while building for production | <p>I'm using JHipster 5.3.4. The production build producing the following error. I have cleared all the packages and re-installed them. Its still producing the error. 'dev' build works fine. It's only appearing after the upgrade to new version of JHipster, v5.3.4. I do not know what's causing the problem.</p>
<p>It st... | 3 | 1,805 |
Flex works in chrome but not in IE | <p><a href="https://i.stack.imgur.com/SSsvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SSsvQ.png" alt="Background Red is not growing completely as per screen size"></a></p>
<p>the html structure of the code is as shown below. Now I have given background:red to timeline className ( to check if t... | 3 | 1,336 |
CollapsingToolbarLayout enterAlwaysCollapsed don't work | <p>Setting enterAlwaysCollapsed to the CollapsingToolbarLayout does not work as expected. The toolbar still gets completely expanded right away even if the RecyclerView has not finished scrolling. I want it to expand only upto a min height when scroll up in the the middle of RecyclerView list and when scroll reaches th... | 3 | 1,516 |
Custom taxonomy page template not found | <p>How can I list all posts from a custom taxonomy category into a custom template? Below is the code.</p>
<p>So I`ve created a custom taxonomy like this:</p>
<pre><code>register_taxonomy('miniblog_category', 'post', array(
// Hierarchical taxonomy (like categories)
'hierarchical' => true,
// This arra... | 3 | 1,556 |
BackBlazeTokenResponse - com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "allowed" | <p>I am getting an error while trying to get an BackBlaze Authorization token. It was working fine before, and suddenly I started getting this error message - </p>
<pre><code>com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "allowed" (class au.com.polonious.cloud.node.backblaze.Back... | 3 | 1,427 |
why my timestamps column cannot update or created | <p>i have create my table like this :</p>
<pre><code> /**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('coverage_area', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('village_id');
... | 3 | 2,581 |
Add a dynamic dropdown field to Razor view | <p>I am building a form based on the model with this structure</p>
<pre><code>public class DynamicFormElementsModel
{
//param might be shown in UI , but will not pass while setting params for report . Example select org.
public bool ReportParameter { get; set; }
public string ParamName { get; set; }
... | 3 | 1,032 |
Searching a maptree of arrayLists | <p>I have a treemap of arrayLists. I need to check each list for matching elements. My code works, except it's only checking the arrays against ones <= itself. The other arrays track fine. I'd imagine it's a stupid error I'm missing, but..</p>
<pre><code> ArrayList<Integer> currentArray;
... | 3 | 2,230 |
Reactjs Heroku can't recognise my heroku domain name from Git repo can't fetch data | <p>Good Day, I am trying to deploy my Reactjs Frontend and Nodejs Backend and Mongodb Atlas Project to heroku as an heroku app. I was using heroku CLI but due to lots of commits & pushes to Git led to an error saying cannot push to 'Head'.</p>
<p>now I have connected heroku using Github, I upload the entire build p... | 3 | 2,388 |
Multiple images on the page and showing success text from ajax under each image | <p>I have multiple images on the page. Every image has option "add to favorites". <strong>Everything work just fine except the message that is showing above image if image is added or not to favorites</strong>. </p>
<p>Success/Fail message is showing on top above first image only. I know that I must use unique id for ... | 3 | 2,957 |
Optimizing djangos count() method | <p>So I have this queryset:</p>
<pre><code>from django.contrib.gis.db.models.query import GeoQuerySet
from django.db import models as base_models
class RestaurantsQuerySet(GeoQuerySet):
def get_list(self, lng, lat):
reference_point = Point(lng, lat, srid=SRID)
return self.annotate(rating=models.A... | 3 | 1,130 |
Responsive iframe and button | <p>I've been struggling for a few days to get a responsive iframe, so I decided to ask for help.</p>
<p>The question is the following, I created a code for a video carousel for a page of mine, but I am not able to make the iframe have the proper size on mobile, on desktop apparently it looks great, but on mobile the vi... | 3 | 9,100 |
Is there a better way to update tableview model in PyQt5? | <p>I have a table with 6 columns which are populated by 4 different datasets. Column 1 and 3 are updated 10 times per second, column 2 is a static column updated once at initalisation and then never again. The other columns are updated less frequently. I am suffering from a bit of lag - not terrible but definately noti... | 3 | 1,591 |
Get registered domains by python | <p>I want to make a python program on whois domain.</p>
<p>I want to obtain the information that is registered every day in whois domain.</p>
<p>look for there is a <a href="https://pypi.org/project/python-whois/" rel="nofollow noreferrer">whois library</a>.</p>
<p>but it seems that you cannot search the domains obtain... | 3 | 1,163 |
Laravel 6 storing data problem even though there are no errors | <p>I am trying to make a user able to post. I had some errors, but now I do not have any errors, but the store method does not work even though it does not show any errors.
This is the form in home.balde.php</p>
<pre><code><form method="POST" action="{{ url('form-store') }}">
... | 3 | 1,839 |
TFS ONPREMISE - Package Feed - BuildAgent do not restore Nuget Packages : 403 | <p>I try to use TFS onpremise with Package Feed as NugetServer for my custom packages.</p>
<p>Here a dump of all my configuration settings:</p>
<ul>
<li>TFS Server : Version 16.122.27409.2</li>
<li>The Task Nuget set on Push work fine.</li>
<li>The agentbuild user account can access to feed url (<a href="https://xxx/... | 3 | 7,856 |
Highcharter plot updates only after second click - R Shiny | <p>This is my Code, similar like the question I already posted today. Now I have another issue I can not get my head around. When I click the <code>actionButton</code> to update the chart, the chart only updates after the second click. The <code>print</code> statement works after the first click. What is going wrong he... | 3 | 1,044 |
how to send an image over a tcp stream- c# winForms | <p>I'm trying to send a picture over a TCP stream on my C# Winforms chat project. The problem is that when it arrives you can see only a blank photo.</p>
<ul>
<li>to send image, the program you need to click the button1 is in the server, and the client check if the server sent "hii" before... It's kind of dumb but ple... | 3 | 5,314 |
Segmentation fault when calling a function which contains an image as parameter opencv / c++ | <p>I'm implementing a method that decompose the images and I have a segmentation fault error ,I'm going to start by showing you the debugger output :</p>
<pre><code>#0 0x0804c2cb in cv::Mat::Mat (this=0xbffff110, m=...)
at /usr/local/include/opencv2/core/mat.hpp:117
#1 0x0804ad14 in decompose (input=...) at ma... | 3 | 1,575 |
Node+express+Angular- calling route results in infinite loop call of controller | <p>I am using node js with express. Angular js files are loaded through index.html</p>
<p>app.js code</p>
<pre><code>app.use(bodyParser.json()); // for parsing application/json
app.use(bodyParser.urlencoded({ extended: true }));
app.engine('html', engines.nunjucks);
app.set('view engine', 'html');
app.set('views', _... | 3 | 1,024 |
Spring HtmlUnit dependency | <p>I have a Spring MVC application with HtmlUnit dependencies. I am using HtmlUnit utilities inside @Component class. The problem is that after compilation(<strong>root cause java.lang.NoClassDefFoundError: org/apache/http/HttpEntity</strong>), on browser start up (index page), I see the page with:</p>
<pre><code>>... | 3 | 1,960 |
Why does QDialog::exec() blocks QTcpSocket work | <p>I make a Bomberman (or DynaBlast) game clone with multiplayer. Server game and client game communicate through messages using QTcpSocket. Typical workflow for playing network game is following:</p>
<ul>
<li>Server player execs NetworkGame dialog, among other things this dialog creates NetworkGame object</li>
<li>Cli... | 3 | 2,191 |
ViewModel functionality in 27.1.x broken with config changes on child activities | <p>I came across this bit of weird behavior and thought it might be of interest to the community. If you have a ViewModel defined for a parent activity, then start a child activity, do an orientation change (I'm using an emulator configured with API=24) and return to the parent activity, the ViewModel of the parent is ... | 3 | 2,389 |
Updating a model class in React JS during development seems to immediately erase any changes to data | <p>So, I like to use a model class with dummy data just cached (not persistent) during development. I'm having a component make changes to the model.js class's data based on form data entered and submitted by the user (I call preventDefault() on submission). Everything seems to be fine except that the new data seems to... | 3 | 4,350 |
Selligent ignoring image size within outlook | <p>I have never used this program before (new job and new programs) and have already noticed some weird quirks of it. For example if I put a p tag around a dynamic div tag (it will ignore any style directly within the div, as as such need put it in the p tag surrounding it) it will work initially, though when I edit th... | 3 | 8,261 |
Cannot update Gradle for Android to 2.13.0 to use ProtoBuf | <p>Hey I'm working on a project and I was trying to use the ProtoBuf Gradle Plugin. At first I was getting <a href="https://github.com/google/protobuf-gradle-plugin/issues/75" rel="nofollow noreferrer">this issue</a> because I currently have Gradle 2.10 installed so I followed the instructions here as well a</p>
<p>Ac... | 3 | 3,012 |
Docker pull fails during extraction with "lchown /usr/bin/sbd no such file or directory" | <p>I've been battling trying to get Docker installed on RHEL7 and, now that I've been able to get it installed, I'm stuck just trying to do a simple <code>docker pull</code>.</p>
<p>I was able to finally get Docker installed using my proposed solution here <a href="https://stackoverflow.com/questions/66810139/issues-in... | 3 | 1,444 |
Failed assertion: line 1205 pos 12: '<optimized out>': is not true | <p>I am new to flutter and facing an issue in Syncfusion Calendar widget. Any help will be appreciated. Here is the code inside my build widget:</p>
<pre><code> return Scaffold(
resizeToAvoidBottomInset: false, // set it to false
body: SafeArea(
child: SfCalendar(
view: CalendarView.month,
... | 3 | 1,321 |
Extend time series for each group in the panel | <p>I have the following database:</p>
<pre><code>firm sic identifier name year X Y Z
1078 2834.0 002824100 ABBOTT LABORATORIES 2013 4.347826 5.217391 15.739130
1078 2834.0 002824100 ABBOTT LABORATORIES 2014 4.368421 6.263158 16.... | 3 | 1,671 |
Document create displayAnchors are being ignored | <p>I am attempting to create a responsive signing envelope using the htmlDefinition property in a document. </p>
<p>I have tried v2 and v2.1 with the same code. </p>
<pre><code>"documents": [
{
"documentBase64": "JVBERi0x...mCjIzMzMzCiUlRU9GCg==",
"documentId": "1",
"fileE... | 3 | 1,360 |
Video playback tethered to scroll choppy only with 1920x1080 videos | <p>I have a video that I want to play based on the user's scroll position (as the user scrolls, the video plays; when the scroll stops the video pauses).</p>
<p>This works fine with most mp4 videos, however when I try to us a video that has a 1920x1080 resolution the playback is "choppy", only updating the video image... | 3 | 1,182 |
map routing is working but on change of source or destination it doesn't reflect | <p>I have shown nested map routing on google map..</p>
<p><strong>At the first view it shows good routing on map, but we change point from dropdown then according to functionality it should get reflected on map..</strong></p>
<p>my code snippet as follow:</p>
<pre><code><style>
html,
body,
#map {
height: 90%... | 3 | 2,746 |
How to add new columns into a new dataframe using output of single function call having multiple arguments and multiple return fields? | <p>this is continuation to below post:</p>
<p><a href="https://stackoverflow.com/questions/65110840/how-to-add-insert-output-of-a-function-call-that-returns-multiple-fields-as-new/65111007?">How to add/insert output of a function call that returns multiple fields, as new columns into Pandas dataframe?</a></p>
<p>If a f... | 3 | 1,365 |
row_number based on case when with text content | <p>Here is a task I need to get three elements based on the given conditions:
three elements: user_id, order_time, ordered_subject</p>
<ol>
<li>each unique user_id</li>
<li>earliest order_time</li>
<li>ordered_subjects' order should be app-> acc ->ayy</li>
<li>if there are several order_time are the same, you sho... | 3 | 1,166 |
sending data from Raspberry pi 4 to firebase firestore | <p>I am trying to send data from raspberry pi 4 to firebase firestore, here is the code</p>
<pre><code>import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
#from google.cloud import firestore
# initializations
cred = credentials.Certificate("/home/pi/Desktop/qu-ever... | 3 | 1,219 |
How to get the updated value of an object from IE after form submission? | <p>I am automating a form submission with VBA and IE.
I am able to submit a form, however, after form submit, i am not able to get the latest status of the label form the IE Document
Here is the code i am using for the URL <a href="http://www.tangoloans.co.uk/brokerform/?affl_id=216" rel="nofollow noreferrer">http://w... | 3 | 1,409 |
Type error in mean stack post method | <p><strong>MEAN Stack</strong></p>
<p>I keep getting </p>
<blockquote>
<p>TypeError: Cannot read property 'first_name' of undefined</p>
</blockquote>
<p>when trying to execute this code (all variables, including modules are defined in other parts of the code). While using GET Method, my code is working fine. But f... | 3 | 1,373 |
display flex disables new lines | <p>So I'm trying to align this video vertically and horizontally with some text underneath the video. My current code can be found below</p>
<pre><code><head>
<script src="https://www.youtube.com/iframe_api"></script>
</head>
<body style="background-color: black;">
<div... | 3 | 1,173 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.