title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
HTTP request - enable cookies is throwing 403 error code using JMeter
<p>I've recently started to work on Jmeter and my script is failing with 403 error code. I'm using Blazemeter recorded script so Cookie manager is added by default. Also, if I just execute the request on browser it works just fine.</p> <pre><code>Sampler Result - hread Name: Thread Group 1-1 Sample Start: 2018-12-03 ...
3
1,101
Getting Gray squares instead of Google map in my android app
<p>I am on the way of creating a web based android application and I would like to integrate Google Map in my app. I got my api key also, but still I am getting the grey squares instead of the actual map.Also there is an error message that I have given below </p> <p>In console I am getting this message</p> <pre><code...
3
1,051
Sliding Menu doesn't show tabs
<p>I am kind of new to Android, I am trying to implement a Sliding Menu, so I followed some tutorials and ended up with these codes:</p> <p>Activity:</p> <pre><code>public class MercadoriaFormActivity extends AbstractActivity { @Inject MercadoriaService mercadoriaService; @InjectView(R.id.toolbarMercadoria) Toolbar...
3
1,492
Python: Importing a graph
<p>So I have this code here, which basically runs Dijkstra's Algortihm on a graph in Python, and then prints the distance and moves it takes to get from start to end. My problem is, I can't figure out how to import a graph as a .txt file using sys.argv and have it read it and run the algorithm on it. Here is my code, w...
3
1,206
WebSocket connection fails to establish when behind AWS ALB and nginx reverse proxy load balancer
<p><strong>Setup Introduction:</strong> I have a node js app with 3 different services namely admin, client and server. All these 3 services are running as individual docker containers. My setup consists of 2 EC2 instances behind an AWS Application Load Balancer, with each EC2 instance running 1 container each of the a...
3
1,111
errorbar in percent stacked barchart ggplot2
<p>I have these data:</p> <pre><code>db&lt;- data.frame(id = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48), Time = c(1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1...
3
1,902
tkinter: When a certain dropdown value is selected, how to make a Button do something else?
<p>I'm trying to make a dropdown menu that makes it so when you press the button it will either convert the text entered into binary or the binary entered into text depending on what you have selected in the dropdown menu. I made a simple dropdown menu and have the first value in the list as the default value for the d...
3
1,763
Bootstrap mega menu take style from chrome dev mode
<p>I'm trying to add a mega menu to my website. I found one that is working and that I like. But I have a problem with the styling I can't seem to solve.</p> <p>Here is how the dropdown menu looks like:</p> <p><a href="https://i.stack.imgur.com/uvVtY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uv...
3
3,355
15 second delay before first call to database in EF 6
<p>After having the C# ASP.NET MVC with EF 6 application in production for about 3 months, we are noticing one call to the database taking considerably longer than it used to. It started out taking less than one second for the operation. With no gradual increase, it jumped to 15 seconds.</p> <p>I have enabled loggin...
3
1,442
How to properly format sql json as desired
<p>Basically,I want to fetch data from mysql and format it into json like this:</p> <pre><code>[ [ "title" =&gt; "first", "uploader" =&gt; "root" ], [ "title" =&gt; "first", "uploader" =&gt; "root" ], [ "title" =&gt; "first", "uploader" =&gt; "root" ], [ "title" =&gt; "first"...
3
1,254
PyMC3 (or Theano) allocating too much virtual memory while sampling
<p>I'm running a PyMC3 sampler on a remote cluster with a total of 3000 tuning steps, 3000 draws, and 2 chains. The data that I'm trying to fit consists of ~6000 data points and I'm setting up 7 variables (I think) to be optimized by the sampler. Maybe around 20 steps into the sampling, my program crashes because it hi...
3
1,368
Is there any possible way to show all the material name in datagridview, even though the other column is empty?
<p>In my inventory program there was 3 tables in my database. 1. Input Column(id,Material,Quantity) 2. Output Column(id,Material,Quantity) 3. MaterialList (Table) Where I can input the names of materials Column(id,Material)</p> <p>In my remaining Stocks form I want to show the Remaining Stocks of all Materia...
3
1,437
Material design - Calender alignment insider a card-reveal module
<p>I have been working on a Material design web layout to create a dashboard for my application. I am using a card reveal module to display a form field where user will be able to update his/her date of birth. For this I am using material design date picker inside the card reveal box But I am seeing the calender appear...
3
9,072
ListBox.ItemContainerGenerator.ContainerFromIndex Returns null
<p>For my Windows Phone 8 App I have a Listbox element like below; when I press multiselect icon on AppBar, I want to show checkboxes inside DataTemplate. So users can make multiselect on items. </p> <p>I have 50 elements bound on this Listbox and always at the index 11 <strong>ItemContainerGenerator.ContainerFromInde...
3
1,764
How to wrap <a> elements inside of a table?
<p>At first, yes I did search and found a lot of similar question and no, non of the solutions worked for me.</p> <p>Now here is my main problem:</p> <p>I try to get <code>"a"</code> elements in line and wrap if there are to much to fit inside the parent <code>"td"</code>. But I can either get them in line or warp.</...
3
2,555
Swift spinner/picker isn't holding or showing integers
<p>I'm trying to figure out why my spinner won't hold integers. When I run the program, question marks appear in the spinner instead of 1,2,3,4 and so on all the way up to 100. I'm new to Swift and this is my very first time working with the spinner/Picker. My program is supposed to calculate Miles per Gallon, but t...
3
1,233
add dynamic data to an Existing Web Site but it does not work
<p>I have added dynamic data to an Existing Web Site but it doesn't work .</p> <p>this is the error that i see :</p> <blockquote> <p>HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.</p> </blockquote> <p>this is my Global.asax :</p>...
3
1,420
Image related issue when creating button dynamically
<p>In my sample app, I try to create <code>Button</code> dynamically using the below code. Everything works fine, but once I set the background image to the button, what I notice is that the image becomes oval in shape. But in actual the image are circle in shape. Why this happens, is anything to do in my code? Help me...
3
1,460
How to add "Load More" functionality in Select2 bootstrap searchable for Jquery by using Eloquent Pagination from Laravel?
<p>I was able to implement a searchable drop down thanks to the help of select2 bootstrap. If I click the dropdown, it will show on the first row a search pane where I could type the name of the user and at the same time, I could manually pick it by scrolling down.</p> <p>However, if the data already reaches 3000, the ...
3
1,885
after using jquery datatable searching, ajax button call is not working
<p>I am fetching some data from my database using PHP and MySQL. I am using the <a href="https://datatables.net/" rel="nofollow noreferrer">jQuery datatables plugin</a>. In the table, there is a column containing an &quot;Add&quot; button. When the button is clicked, the Ajax method runs in the background.</p> <p>The b...
3
1,676
Complete dataframe for few samples, from a vector
<pre><code>DF=structure(list(Ech = c(4L, 4L, 4L, 4L, 4L, 13L, 13L, 13L, 13L, 13L), pos = c("BD", "BG", "HD", "n_BG", "n_HG", "BD", "HD", "HG", "n_BG", "n_HG"), sm = c(5, 4, 2, 6, 1, 4, 1, 1, 2, 1)), .Names = c("Ech", "pos", "sm"), row.names = c(NA, -10L), class = c("grouped_df", "tbl_df", "tbl", "data.frame"), vars...
3
1,041
LibGdx - Batch is not drawing the last .draw command
<p>So this is pretty weird... I have an abstract BaseScreen. This screen initializes a SpriteBatch on show(). The init() calls the one of the BaseScreen's abstract methods. This draw issue is from using the 'gameView' viewport which is an ExtendViewport</p> <pre><code>SpriteBatch batch; @Override public void show(){ ...
3
2,006
Error C2995: Function template has already been defined. No circularity found
<p>I had refrenced a few other similar questions, they would often point to circularity being the problem. But I cannot see that anywhere within my code. </p> <p>arrayi.cpp:</p> <pre><code>#include "arrayi.h" // Member function definitions for class Array // Initialize static data member at file scope template&lt;t...
3
1,117
Back bean attributes not updated on primefaces data table sort action
<p>I'm using primefaces lazy data table in a jsf page like below:</p> <pre><code>&lt;h:form id="searchForm"&gt; &lt;h:panelGroup id="searchFields"&gt; &lt;h:outputText value="searchField"/&gt; &lt;p:inputMask id="txtSearchField" dir="LTR" mask="9?9999...
3
1,054
SQL generating multiple count columns
<p>I have developed some SQL to generate statistics on our local tickets database table (SQL Server 2008). As you can see from my code, I want to select from TICKETS, joining group to get the group name, grouping by group code as well as year/month. </p> <p>I want to create totals (counts) for how many tickets were ...
3
1,193
How to create a simple responsive layout with navigation and image gallery?
<p>I have a problem with my code. My task is to create an image gallery that is responsive. And I am not good enough in CSS. I search for another tutorials and I apply it with my code. I am creating a 4 column image gallery of products. And beside the gallery is a simple navigation menu. So I have 2 columns. One is for...
3
4,245
Trying to write a string to a tempfile
<p>I'm making a game of 20 questions. In the code I've created a tempfile to keep track of the user's questions. Here's the code:</p> <pre><code>import random import turtle import tempfile import gzip def getAnswer(): obj = random.randrange(5) if obj == 0: infile1 = open("appleyes.txt", "r...
3
2,452
JQuery POSTing with buttons values, returning input?
<p>Hey guys and gals I'm having some major issues trying to get my application to work. I've been trying to hack through this and am missing the very first part which is sending the correct input value (button value) to get the ball rolling, I'm sure this is something simple but I've been having an issue getting it wor...
3
4,321
Aspnetcore Midlleware not reversed in .net6 when using Graphql
<p>In versions before .net6, I used to add an <code>ErrorHandlerMiddleware</code> to the pipeline, so I can centralize the need of returning error types in the application with different status codes. an example is something exactly like this:</p> <pre><code>public class ErrorHandlerMiddleware { private readonly Re...
3
1,701
Tradingview Occasional False Alarms
<p>There is an indicator that I have shared the codes below. The alarms I set are working incorrectly. It can send fake signals without showing &quot;buy&quot; or &quot;sell&quot; on the screen. How can we make this work only after typing buy and sell on the screen and the candle is closed? I want the buy alarm to work...
3
1,599
Building nginx with PCRE on Windows fails on link step for nginx.exe
<p>I am trying to compile nginx with PCRE support on Windows.</p> <p>My build script is written in bash:</p> <pre class="lang-sh prettyprint-override"><code>curl -O https://ftp.pcre.org/pub/pcre/pcre-8.00.zip unzip -qd pcre-8.00 pcre-8.00.zip rm -f pcre-8.00.zip # For brevity, I'm leaving out how openssl is pulled push...
3
10,536
Getting error: "certificate verify failed: unable to get local issuer certificate" trying to webscrape pdfs in PyCharm
<p>Here is the code that I have been trying to fix:</p> <pre><code>import requests from urllib.parse import urljoin from bs4 import BeautifulSoup url = &quot;https://www.pbs.gov.pk/node/3391/?name=001&quot; #If there is no such folder, the script will create one automatically folder_location = r'infoFA' if not os.path...
3
2,038
Reply to an email with "First Name Last Name", not with "Last Name, First Name", with a particular font
<p>I am trying to reply to an email in an organisation, using my own font and color with some minor changes to the codes available on <a href="https://www.extendoffice.com/fi/documents/outlook/5417-outlook-dear-first-name.html" rel="nofollow noreferrer">https://www.extendoffice.com/fi/documents/outlook/5417-outlook-dea...
3
1,031
Change detection not working when creating a dynamic component with nested input data
<p>I have an issue with change detection not firing the child <code>ngOnChanges</code> method for child components created dynamically using angular 13.</p> <p>Here i have two dynamic components mainly</p> <ul> <li>Button Block</li> <li>Text Block</li> </ul> <p>Initially when the application loads the Button block is l...
3
1,812
Send emails via CURL (shell script) CURL command returned 0 but the receiver didn't receive the attached files but the message
<p>I've run into a problem with sending emails via CURL using shell script.</p> <p>I have a script that do:</p> <ol> <li><p>Download dashboards from our Tableau server (private) via tabcmd command then save these files into a directory.</p> </li> <li><p>Send these files to receivers using a SMTP sever (private) via CUR...
3
1,498
FileField() does not show up in template
<p>I'm adding the file upload functionality to a website built by my predecessor. The current revision looks like the following: </p> <p><a href="https://i.stack.imgur.com/C70MV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C70MV.png" alt="enter image description here"></a></p> <p>The issue is th...
3
5,337
Vaadin 7 problem after deployment: NoClassDefFoundError
<p>I am running Vaadin 7 with IntelliJ. I am unable to develop my company's project because I am stuck at a problem that occurs after deployment.</p> <p>The Server tab in IntelliJ says that starting the server and deploying the artifact is successful</p> <pre><code>Connected to the target VM, address: '127.0.0.1:9009',...
3
1,471
Move entire document into iframe
<p>I'm adding a chat feature to a couple of our websites. The chat will connect users with people at our help desk to help them use the websites. Our help desk folks want the chat window to appear like a tab on the side of the page and slide out, rather than popping up in a new window. However, I want to allow the user...
3
1,314
Texturing triangles
<p>I am trying to texture triangle with OpenTK ES with this code</p> <pre><code>using System; using OpenTK; using OpenTK.Graphics.ES11; using OpenTK.Platform.Android; using Android.Content; namespace TexturedTriangle { class GLView1 AndroidGameView { public GLView1(Context context) base(context) ...
3
3,713
Google Place Automplete box doesn't display anything
<p>I'm trying to implement a <a href="https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?hl=FR" rel="nofollow noreferrer">Google places Autocomplete</a> field on my website, but it doesn't work. I tried to copy/paste the sample given by Google on a <em>.html</em> file, it perfectly...
3
1,492
Inconsistent behaviour using Entity Framework for ASP.NET MVC app vs windows service
<p>I'm in the process of updating an existing ASP.NET MVC application to include some new functionality from another ASP.NET MVC application, and one component of this is a Windows service which will generate some documents following user input on the web app. The whole solution uses Autofac for dependency injection, a...
3
1,311
Update current View MVC 5 after save
<p>I have the following code and want to update the user role with dropdown then stay on this page with the updated choice from the dropdown. I thought I could use redirectToAction to the GET ActonResult but it goes to the POST ActionResult. How do I stay on the same view with the dropdown updated with new choice? Than...
3
1,235
using the gprof -f option in Linux for c++
<p>Hi so i have started using gprof for my profiling work and it works fine except for the -f option which allows me to specifiy a particular function to be viewed in the call graph.</p> <p>for example</p> <pre><code> Call graph (explanation follows) granularity: each sample hit covers 4 byte(s) no ...
3
1,298
Connecting to AD with LDAP in Python - Error 'unable to open socket', [(LDAPSocketOpenError("('socket ssl wrapping error: [SSL] PEM lib (_ssl.c:3895)'
<p>When connecting to MS-AD to perform a password reset using the following Python script with LDAP3 library and SSL protocol, I am facing a problem connecting.</p> <pre><code>import ldap3 as ldap import ssl # &lt;-------------------------------Adicionar Certificado a coneção-----------------------------------&gt; cer...
3
1,112
java.lang.IllegalStateException: Failed to configure KeyVault property source caused by Failed to do authentication
<p>Using the azure-keyvault-secrets-spring-boot-starter 2.2.1 we receive the following error without any hint why it occurs when we try to connect to the azure vault to pick some values.</p> <p>Our log shows:</p> <pre><code>ERROR org.springframework.boot.SpringApplication - Application run failed cdb-be_1 | java.lang....
3
4,875
How to add the bearer token that is currently added to the response's auth header, to the response body?
<p>I implemented authorization to my SpringBoot API by using the bearer token, which when login is successful is added to the response's 'Authorization' header, this token then needs to be read by the login fetch method of my React project and added to the subsequent request 'authorization' headers.</p> <p>Unfortunatel...
3
2,503
Unable to fetch and update DB columns in Laravel (using Resource Controller & Collective Forms)
<p>Here's a little context to what I'm trying to do: I'm trying to make a Profile System where the user registers and is redirected to a Display Page, where all the User info like his name, email etc. are meant to be displayed. Since the registration form only has 2 fields (name / email) - the user has to update his ot...
3
3,377
Xamarin iOS present a different view controller when app returns from background
<p>The xamarin ios app which I am working on requires GPS to be always enabled. When the application is first installed the user gets a prompt to enable GPS however the user has the option to turn off location services at device level. </p> <p>I would like my app to prompt(i.e.. NAG) user to enable gps. Hence, I crea...
3
1,107
Laravel cache:config crashes all the application
<p>I'm developing a Laravel application and I run into something very strange I can't understand. I was working with some route and I did clear routes, cache and also run the command config:cache and everything was down throwing this kind of exception everywhere also running all the other commands like composer dump-au...
3
1,172
php works from action but not from onSubmit in html form
<p>I have an HTML form which gets some text data from the user. I want to insert that into my database and stay on the same form so that another row can be created in the database. I have the php working fine if I call it from the form using action='includes/addUser.php' but that then leaves the browser on the addUser....
3
1,918
My drawn object doesn't clear previous rectangle after key is pressed
<p>My code will not clear the previous rectangle when I press one of the arrow keys. I thought that by using <code>repaint()</code> in my <code>keyPressed()</code> method, that would solve the problem. I also tried using <code>clearRect()</code>, but that doesn't do anything.</p> <p>This is the idle rectangle: <img sr...
3
1,323
Error 10061 - server listening but client not connecting
<p>Windows 10, Microsoft Visual Studio 2019, C++</p> <p>I am learning TCP communication on my own, and I am using the <a href="https://docs.microsoft.com/en-us/windows/win32/api/winsock2/" rel="nofollow noreferrer">WinSock2 information page</a> to build a simple program where I can send data from myself to myself.</p> ...
3
3,892
change configuration of the context.xml file
<p>I have a file context.xml in the path /app/myapp/tomcat/conf/context.xml with this format:</p> <pre><code>&lt;Resource name="jdbc/name-ds" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" username="username" password="password" driverClassN...
3
1,207
Why does this code generate multiple files? I want 1 file with all entries in it
<p>Im trying to work with both beautifulsoup and xpath and was trying to using the following code, but now im getting 1 file per URL instead of before where i was getting 1 file for all the URLS</p> <p>I just moved over the reading from CSV to get the list of urls and also just added the parsing of the url and respons...
3
2,793
Qt5 Remote Objects + custom type but not in POD
<p>I would like to use loads of custom objects with Qt5 remote objects. As I read they might not needed to be created as PODs in the .REP file. I have tried to do the following:</p> <pre><code>namespace my::api { class Card { Q_GADGET Q_PROPERTY(QString type READ type WRITE setType) [... r...
3
1,073
Fill empty object with part of the data from another object JavaScript
<p>I have an empty object that's represented like this:</p> <pre><code>myObj = { myObjName = null; myObjType = null; myObjOcc = null; } </code></pre> <p>And there is an object with objects represented like this:</p> <pre><code>mainObj = { "Ob1": { "id": 1, "name": "Ob1", "properties": ...
3
1,177
php and mysql insert into multiple tables from one form
<p>I am creating a simple site to keep records of users, customers, suppliers, etc.</p> <p>I have created the forms to register clients and users using single forms capturing data through $ _POST form method</p> <p>So far I have not had problems since the INSERTS are done on singles table wich PK is an AutoIncremente...
3
2,851
JMeter 3.2 file upload hitting ASP.Net as null file
<p>I'm using JMeter 3.2 to test my site. I've used 2 prior versions, so I have some clue what I'm doing.</p> <p>I'm testing an ASP.NET 4.5 site.</p> <p>When I record a file upload I get a "fail" page back because my application is entering the "file uploaded" procedure, but the HttpPostedFileBase is null.</p> <p>Th...
3
3,055
Setting up Sequelize
<p>I am new to programmming getting used to node and setting up database for first time. So please give some pointers as to what I am doing wrong.I created a default express app. And ran it getting this error.</p> <pre><code>events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EADDRI...
3
1,762
Trying to fill a colored line above filled in cells
<p><a href="https://i.stack.imgur.com/QQgiJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QQgiJ.png" alt="No Colored Rows" /></a><a href="https://i.stack.imgur.com/PiVZA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PiVZA.png" alt="With Colored Rows" /></a> My code is to fill c...
3
1,082
Searching on expression indexes
<p>Searching on expression indexes</p> <p>I'm building an expression index that substrings a source field to avoid overflowing the 2172 character limit on B-trees:</p> <pre><code>CREATE INDEX record_changes_log_detail_old_value_ix_btree ON record_changes_log_detail USING btree ((substring(old_value,1,1024)::...
3
2,425
Django Wagtail 'expected string or bytes-like object' error
<p>I've been having some trouble figuring out what exactly is causing this error in my code. My main pages render but when I try to open a child page I get the expected string error. Any help debugging this greatly appreciated.</p> <p>Traceback Below: </p> <pre><code> Internal Server Error: /resonate/page-2/ Trace...
3
5,258
Slow Postgres 9.3 queries
<p>I'm trying to figure out if I can speed up two queries on a database storing email messages. Here's the table:</p> <pre><code>\d messages; Table "public.messages" Column | Type | Modifiers ----------------+---------+-------------------------------------...
3
1,656
Optional dependencies of external library added via Grab not available
<p>It is not possible to use external third party libaries with optional dependencies properly in shared libraries for Jenkins.</p> <p>I have a shared library which uses <a href="https://commons.apache.org/proper/commons-configuration/" rel="nofollow noreferrer">Commons Configurations 2</a> to read varios configuratio...
3
1,615
How do I split a text file and store them in arrays to use for a template in C?
<p>I'm a newbie at C and I'm having problems splitting a particular text file and storing the tokens in an array.</p> <p>This is my txt file called data.txt- to be splitted by "|":</p> <pre><code>Public|Jane|Q|Ms.|600|Maple Street|Your Town|Iowa|12345 Penner|Fred|R|Mr.|123|that Street|Winnipeg|MB|R3T 2N2 Gardner|Mark...
3
1,045
Can't click on image again, what's wrong with my pygame code?
<p>Okay, I'am trying to create a Tom and Jerry game with the pygame library. </p> <p>The game focuses on catching mice by clicking on them as they appear in their holes. The problem is that sometimes a cat appears instead of a mouse and should the player erroneously click on the cat (s)he looses all earned points, but...
3
2,014
php array 6 sided Dice Roll Tally issue
<p>I was hoping someone could figure out why my code is not working for a 6-sided dice tallying the numbers for 6000 rolls using arrays.</p> <pre><code>&lt;?php // main ////////////////////////////////// //$throw_dice = array(); //$tally = array(); echo "debug - code runs to this point&lt;br&gt;\n"; $throw_dice =...
3
1,274
ImageView setsetImageResource keeps crashing on phone but not on emulator or tablet
<p>Developing a poker game, where I have 5 cards displayed initially with back of a card. Then will display the first set with new images of a card and still okay. Upon drawing for another card, the <code>setImageResource()</code> triggered <code>InvocationTargetException</code> while <code>debugging</code> using phone...
3
3,976
How to apply for loop to create charts using VBA
<p>I have 14 pivot tables.I want to create charts for all 14 tables.My code is given below which looks so wired.I want to apply for loop here.My code is given below:</p> <pre><code>Sub Macro1() ' ' Macro1 Macro ' ' Range("B5:E5").Select ActiveSheet.Shapes.AddChart.Select ActiveChart.ChartType = xlColumnCl...
3
2,663
Looping change listening and counting loop in JavaScript
<p><strong>EDIT 20.01.2020</strong> --- <strong>NEW PROBLEM</strong></p> <p><strong>Problem/principle of operation:</strong></p> <ol> <li>I have tables, divided into X rows and Y columns. In creating the table uses Razor syntax for ASP.NET Core.</li> <li>In the table I have to make a mathematical equation giving me ...
3
2,047
Nested ScrollView with multiple ListViews does not scroll
<p>I just want my nested scrollview to scroll, I do not want the lists to scroll. For some reason the scrollview does not scroll. I looked into multiple posts related to nested scroll views, scroll views, with listview, none of the solution helped. It is strange that the scrollview is not working, I am not certain if I...
3
1,403
The box "name" is already open and of type Box<dynamic>
<p>The error is The box &quot;todo_box&quot; is already open and of type Box.</p> <p>The relevant error-causing widget was: MyHomePage MyHomePage:file:///D:/Flutter_app/alimi_final/lib/schedule.dart:27:13 When the exception was thrown, this was the stack:</p> <p>I have no idea about this error.</p> <p>my code</p> <p>m...
3
7,221
using sequence in bulk load using listargg
<p>Below is an Oracle select/insert for a bulk load from XML. It turns out that the text in the XML is limited to 80 chars so a listargg is used to group all the text into one row. The problem comes in using the sequence to generate the PK.</p> <pre><code>insert into rule_table (rule_nbr, rule_text, eff_start_dt, rul...
3
1,575
I can't connect href link to email and can't adjust the the elements due to themselves
<p>I totally googled the email part and don't know it normally works like that or Nah</p> <p>I tried with flex but still couldn't fix it out. I can fix with margin and padding, but that's like cheating.</p> <p><a href="https://i.stack.imgur.com/sMm2M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sM...
3
1,155
Element was null when I user page object pattern
<p>I'm new to mobile automation, and I'm facing a problem with page object pattern. When I try to find element with FindElementById everything works, here is my class with pop:</p> <pre><code>public class SamplePage { private AndroidDriver&lt;AndroidElement&gt; _driver; [FindsByAndroidUIAutomator(I...
3
1,342
Customizing WSO2 API Manager Responses
<p>I am playing around with WSO2 API Manager and was wondering how to take care of below scenario:</p> <p>I have created a REST API and enabled JWT token on it. When calling the API, if I don't pass the token I am getting the error but in XML format. I was wondering how and where can we change that to a JSON format.</...
3
8,326
One table with multiple pivots tables
<p>these are relations in my models :</p> <ul> <li>Medecine belongsto many Pharmacologic and Pharmacologic belongsto many Medecine</li> <li>Medecine belongsto many Therapeutic and Therapeutic belongsto many Medecine</li> <li>Medecine belongsto many Galenic and Galenic belongsto many Medecine</li> <li>Medecine belongst...
3
2,024
Create new Realm List and add items
<p>I make a <code>API</code> request with <code>Alamofire</code> , I then get a response in <code>JSON</code> format, I then parse the <code>JSON</code> into a <code>NSDictionary</code> to get to the data I want. The data I get is four <code>Arrays</code> of different items. I want to the create a new List in Realm to ...
3
1,922
Debug grails 3 app in IntelliJ Idea 15 CE fails
<p>I'm trying to debug a grails 3.1.0.M2 plugin using IntelliJ Idea 15 (Community Edition). I created the project by simply importing the directory where the grails app lives. </p> <p>Executing the grade task <code>bootRun</code> from within the IDE works fine. I try to debug by loading the file <code>grails-app/ini...
3
3,388
Trying to add a ListView but keep getting NPE where i try to set adapter
<p>i am trying to add a listview wich shows the clients, at first just name and visit adress. Have never used listview before and nog keep getting a NPE on line MainActivity.java:86. havent filled or used all field of client. but just want it to work first before i continue. here is my code </p> <p>Main Activity ...
3
5,409
Symfony one to one Bidirectional embedded forms
<p>I have one-to-one bidirectional relationship between user and institute. Each user can own an institute at a time and each institute is owned by one user at a time. What i wanted to do is i have institutes data in my institute table, now i want to create user and during creating user, i want to assign him an institu...
3
1,804
OpenGL ES iPhone, corrupt image when using glClearColor
<p>I'm just starting to learn about OpenGL ES on the iPhone. I trying to get a very simple example working that sets up an EAGLContext and render buffer then simply uses glClearColor to set the screen color. </p> <p>My code compiles and executes but unfortunately, instead of the expected grey screen, I see a a white i...
3
1,136
Threading error: get() takes 0 positional arguments but 1 was given
<p>I have an issue with threading, the question was already asker but it didn't answer mine. I'm trying to create a chat app with socket to understand how it works better. The problem here is i can't get it to receive messages automatically, i would basically have to invoke the get() function each time i get a new mess...
3
1,074
Jenkins fails to build with docker
<p>I'm trying to build my Maven project with Jenkins and Docker.</p> <p>I prepared following Jenkinsfile inside my repository.</p> <pre><code>pipeline { agent none stages { stage('3-jdk-8') { agent { docker { registryUrl 'https://registry.hub.docker.com' ...
3
2,073
Spring Data JPA: What is wrong or how to correct this jpql query
<p>The entity relationships are - A student belongs to one college And a college can have multiple students. So there is ManyToOne relationship between Student --&gt; College And a OneToMany relationship between College --&gt; Student.</p> <p>The entities are as below.</p> <pre><code>@Entity public class College { ...
3
4,179
Tiptap (Prosemirror) collab schema error for mention tags
<p>I needed some help implementing <strong>mentions</strong> into real-time collab server (<a href="https://tiptap.dev/suggestions" rel="nofollow noreferrer">https://tiptap.dev/suggestions</a>). My code is modded version of this: <a href="https://glitch.com/edit/#!/tiptap-sockets?path=server.js%3A1%3A0" rel="nofollow n...
3
1,258
AOT compilation fails when factory function imported from library is used in DI in Angular
<p>I have an Angular 6.1 application, which imports some external module.</p> <p>When I'm compiling the application in AOT mode:</p> <p><code>$ ng build --aot</code></p> <p>I'm getting this error:</p> <pre><code>ERROR in ./src/app.component.ngfactory.js Module not found: Error: Can't resolve '/home/user/project/nod...
3
1,701
Django Rest Framework, help describing a model containing ManyToMany relationship with users and extending user information
<p>I have a model that basically works like an event. An event is create by a user (ForeignKey). Then other users can join the event and bring guests (Not users but just &quot;anon&quot; users). Meaning that when users join an event they can state how many outside guests they want to bring. I am having trouble figuring...
3
1,098
PostSharp.Samples.Xaml + EntityFramework
<p> While converting PostSharp.Samples.Xaml sample to use EntityFramework, I am encountering "k__BackingField" problem mentioned in <a href="https://stackoverflow.com/questions/10570925/postsharp-inserting-k-backing-field-into-entity-class-causing-database-generat/10571183#10571183">PostSharp inserting k__Backing Fiel...
3
11,020
How to write mockito test for loadUserByUsername method
<p>This is my implementation of the UserDetailsService class.</p> <pre><code>@Service public class AuthorizationAndAuthenticationService implements UserDetailsService { private final UserRepository userRepository; @Autowired public AuthorizationAndAuthenticationService(UserRepository userRepository) { ...
3
4,556
Changing Autowired bean type unexpectedly changes value?
<p>I've tried to create an Application and ran into some funky behavior. First, I'll run through my setup. Here's my configuration class:</p> <blockquote> <p>ProblemApp.java</p> </blockquote> <pre><code>@SpringBootApplication public class ProblemApp { public static void main(String[] args) { var con...
3
2,305
unable to install Botium CLI "npm install -g botium-cli" giving error message
<p>I tried to install BotiumCLI using command <code>npm install -g botium-cli</code> with NodeJS v12.19. During installation am receiving a error as mentioned in below.</p> <p>Error am receiving during installation</p> <pre><code>npm ERR! prepareGitDep 1&gt; npm ERR! prepareGitDep &gt; grpc@1.24.3 install C:\Users\user...
3
1,516
How can I create and wrap the child node around all other child nodes?
<p>I have something like this:</p> <pre><code>&lt;DataTable&gt; &lt;Tests&gt; &lt;Test1&gt;1&lt;/Test1&gt; &lt;Test2&gt;2&lt;/Test2&gt; &lt;Test3&gt;3&lt;/Test3&gt; &lt;/Tests&gt; &lt;Tests&gt; &lt;Test1&gt;4&lt;/Test1&gt; &lt;Test2&gt;5&lt;/Test2&gt; &lt;Test3&gt;6...
3
1,112
Do I have to dispose HTTP client at all?
<p>I have an ASP.NET web forms app running on IIS 8. The app uses HttpClient to retrieve data from a server. And that is all. HttpClient is not used thereafter. </p> <p>Do I need to dispose of the HttpClient at this point?</p> <p>I am really confused, because people on the internet are saying that you shouldn't, as t...
3
1,095
How do you make a JTextField's number bigger than another JTextField's number?
<p>I'm trying to get a JTextField's number greater than another JTextField's number for my Tic Tac Toe project, but I keep getting exceptions.. For instance, if <code>gridSizeField</code>'s number is 6, than <code>playersField</code>'s number would not be 5. I want it to be 6 or greater.</p> <p>This is my all my code s...
3
5,265
Training loss explodes from first training example and then outputs nan
<p>I'm a novice at deep learning, I have built some basic CNNs, but this time I'm trying to build FCN(Fully Convolutional Network) similar to Yolo3. my network contains 32 layers with LeakyRelu as the activation function and adam optimizer. there are 680 data samples and the input image size is 416x416 same as yolo mod...
3
2,129
How to solve "Parameter not valid" exception
<p>I want to compare two images to see if they are the same images by checking the pixel values of the images. DB has a table with a column with images saved as <code>BLOB</code> type.</p> <p>I upload an image into a picture box, then checks it with the DB to retrieve the value in the column named "CID" when the pixel...
3
1,893
Make JavaScript/jQuery tabs return to position on mouse out
<p>This post is about the 3 green tabs at the top of the page (link is below). I have almost got these moving tabs how I want them, but I am not able to get the tabs to return to original position on mouse out or on a click elsewhere. Instead they move back to position after a set amount of time. How difficult is it to...
3
1,445
Want to draw square on one face of a rectangular prism opengl es ios
<p>I have rendered a rectangular prism using opengl es for ios in Xcode. I want to draw a square on one of the faces of the rectangular prism (front face). I cant use a different data structure to hold the vertices, color co-ordinates and texture because the rectangular prism rotates with touch, and if I use a separate...
3
2,447
Combine multiple rows into 1 - Update table
<p>I need to combine rows in my table; dvsAIPGroupID’s: 8 &amp; 73 are being combined into just 8. I want to sum the values for hedges, aiptotal, and value and group by the rest of the columns.</p> <p>This Table <a href="https://i.stack.imgur.com/jDu6B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
3
1,859