title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to make the hover event pass through and keep the click event? | <p>As shown in the picture<a href="https://i.stack.imgur.com/H7ErL.png" rel="nofollow noreferrer">1</a>, the expected effect is that when the mouse hovers over a node, the display options are clickable. However, when the mouse is moved over the option icon, the icon closes and the node has no highlight and occasionally... | 3 | 1,054 |
Computer Vision Quickstart not working for Java | <p>I am new to computer vision and I am trying to implement the following (<a href="https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/ComputerVision/src/main/java/ComputerVisionQuickstart.java" rel="nofollow noreferrer">example</a>), but it always sends me the same error:</p>
<blockqu... | 3 | 1,461 |
"Cannot POST /api/graphql" with Vercel Apollo Server (Serverless) | <p>I am trying to setup a severless Apollo server with Vercel, TypeGraphQL & TypeORM (postgres).</p>
<p>To do so, I followed a few tutorials, and all of them suggest using the <code>apollo-server-micro</code> module as it allows to expose the <code>createHandler</code> method which is great for a serverless environ... | 3 | 1,982 |
Why are non-lexical lifetimes not working when mutably traversing a linked list? | <p>Consider the following linked list structure:</p>
<pre class="lang-rust prettyprint-override"><code>struct Node {
value: i64,
next_ptr: Option<Box<Node>>,
}
struct SortedList {
head_ptr: Option<Box<Node>>,
}
</code></pre>
<p>Assume that the list is always sorted with respect to n... | 3 | 1,318 |
I want the text in the middle of cardview if there is no image in ArrayList | <p>I have a <code>RecyclerView</code> with a <code>Cardview</code>. I got it to work if there is no image in the <code>ArrayList</code>, but it still puts the text at the bottom. </p>
<p>Like this:</p>
<p><a href="https://i.stack.imgur.com/K24Ra.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K24Ra... | 3 | 1,335 |
MigLayout, why is this cell the one using the extra space? | <p>I have this panel which is using MigLayout to create cells for my content. Here's the code portion:</p>
<pre class="lang-java prettyprint-override"><code>/ ====Layout====
setLayout(new MigLayout("hidemode 3", "[400][0][400]", "[][][][][][]"));
Border border = BorderFactory.createLineBorder(Color.WH... | 3 | 2,261 |
Random data in SQLite | <p>I am asking your help to fix my problem in my android applications. I have a project to make a quiz apps, and I want to implement linear congruential method in this game. I have success to random my data, but I still have no idea how to implement the method. Here is my code; </p>
<pre><code>public class QuizHelper ... | 3 | 2,053 |
EJB Singleton and JPA optimistic locking throws OptimisticLockException | <p>I have a problem that relates to an EJB singleton and database locking.</p>
<p>The following class represents an entity for consignment numbers.
It is mandatory that each consignment number is unique. Please note, that this
class has been prepared for optimistic locking by defining the version property.</p>
<pre><... | 3 | 1,946 |
html element on top of header but behind main section, tried to correct using z-index but did not work | <p>so i have designed a nav element where on a mobile device, you click a button (the 3 menu bar hamburger) and the nav element slides in from the left. on the original index page it appears on top of the header which is what i want, i didnt even have to use z-index to achieve this. so i created a login page with a for... | 3 | 5,658 |
XML received from response is out of format | <p>Hi im currently using PHP on a linux server to receive response from a WebService hosted on a Windows server.</p>
<p>I am using the following PHP to read the response :- </p>
<pre><code>while (!feof($socket)) {
$result .= fgets($socket, 4096);
}
fclose($socket);
if ($debug) echo '<pre>',$result,'</pre... | 3 | 2,481 |
Terminal probabilities of a probability matrix Numpy | <p>I have a matrix m that represents the probabilities transitioning from states to states.</p>
<p>E.g. for the sample below I will always get stuck in states 1,3,4, and state 2 I will randomly transition to one of the 4 states.</p>
<pre><code>import numpy as np
m = np.eye(4)
m[1] = 0.25
print(m)
</code></pre>
<pre><co... | 3 | 1,046 |
Spring Cloud Open Feign: linebreaks "\n" stripped from gzip response body | <p>Linebreaks ("\n" or "\r") are been stripped out from <strong>gzip</strong> response body, when using response compression configuration (as below) in Spring Cloud Open Feign. There are no errors raised. Linebreaks are just been replace by an empty string "". The response has the correct... | 3 | 1,195 |
Android Integration test: Mocking the logic/ method in within an activity using Dagger and Mockito and get the returned value back within the test | <p>I am developing an Android application using Kotlin. I am also writing integrated tests for my application using Dagger and Expresso. I am now having a problem with mocking a logic. First, let me show you how I mock logic in the code using Dagger for the integrated tests.</p>
<p>I have the Dagger app component clas... | 3 | 1,221 |
How to handle frontawesome url-load issue in webpack4? | <p>I am working on a react project with <code>webpack4</code>. I added a import code in my js file:</p>
<pre><code>@import 'font-awesome/css/font-awesome.css';
</code></pre>
<p>After than I got below error on compiling. </p>
<pre><code> ERROR in ./css/waffle/waffle.scss (./node_modules/css-loader!./node_modul... | 3 | 1,675 |
Fixed position of buttons in dialog of JSF page | <p>I am using a PrimeFaces dialog. I have just a few elements there. A dataTable and 2 buttons (Ok and Cancel).
But buttons are displayed on bottom, and are visible only when I scroll down the whole table. I want them to be always displayed on bottom, no matter if I am on first or last row.
I search a lot but didn't fi... | 3 | 2,954 |
Unable to see charts for the d3 code. Error in console 't.apply is not a function' | <p>I am trying to use crossfilter.js and d3.js to generate brushes and charts to filter my data. The dates are in the format "2019-04-08T09:07:22.512Z" . I tried different ways to parse through the date and to generate the charts but am unable to do so . I get the following error in the console 't.apply is not a functi... | 3 | 8,034 |
Openiddict Unable to resolve service for type 'OpenIddict.Core.IOpenIddictApplicationStore` | <p>I'm trying to setup the .net core project using identity + jwt authorization, but I'm getting the following error:</p>
<blockquote>
<p>System.InvalidOperationException: Unable to resolve service for type 'OpenIddict.Core.IOpenIddictApplicationStore<code>1[OpenIddict.Models.OpenIddictApplication]' while attempting... | 3 | 1,530 |
crash in cordova app running on ios | <p>A year ago, we've developed an app running on IPad. User can edit and scroll through multiple page forms. Within each page there are several input fields, labels and images. Now we are porting the app to IOS 10. We are using cordova, ionic and AngularJS.</p>
<p>Now we have some weird crashes also on IOS 9.3.5. Afte... | 3 | 5,093 |
NSDictionary is empty when i use JSONValue to response string from SOAP WebService | <p>Currentyl i am developing IOS application using XCode4.2.1. My application is grabbing json value from asp.net web service. Here is my code to grab web service.</p>
<pre><code>-(BOOL)GrabbingStudentsWebService{
NSURL *url=[NSURL URLWithString:@"http://www.cheaptal.com/easypft/Service1.asmx"];
ASIFormDataRequest *re... | 3 | 1,287 |
Custom ListView in Fragment just appear when I rotate the Android Phone | <p>I have created an Fragment to be the main feed of my app. The list data(ArrayList) is loaded from the main activity through the inner interface in fragment that Activity implements.</p>
<p>My problems:</p>
<ol>
<li>My custom ListView just is shown when I rotate de phone.</li>
<li>OnCreateView and OnActivityCreate ... | 3 | 1,408 |
R plotly: Display image on hover | <p>I am trying to reproduce <a href="https://plotly-r.com/interactives/tooltip-image.html" rel="nofollow noreferrer">this</a> simple plotly graph that shows images on datapoint hover. The code is available <a href="https://plotly-r.com/supplying-custom-data.html" rel="nofollow noreferrer">here</a>.</p>
<p>However, I am... | 3 | 1,385 |
There's a problem with sigmoid use in multi-label image classification | <p>Multi-labeled image classification using 'inception resnet v2' model.</p>
<p>I'm changing the required part to a sigmoid.</p>
<p>Beyond a certain number of studies, it shows results such as softmax.</p>
<p>The code is part of the 'inception resnet v2' in use.</p>
<pre><code>def inception_resnet_v2(inputs, num_cl... | 3 | 1,564 |
Authorization Policy using Dependency Injection in asp.net core | <p>I want to create policy based authorisation for aspnet.core</p>
<p>I have lots of policies that I want to implement and I don't want to bloat the startup.cs file with policies.</p>
<pre><code>public void ConfigureServices(IServiceCollection services)
{
services.AddAuthorization(options =>
{
opti... | 3 | 1,179 |
Exception in thread "main" java.util.NoSuchElementException, Numerous errors | <p>I'm pretty new at when it comes to Java and I am having an issue with this new Program that I am designing. I believe it might have something to do with the Scanner, but I am not so sure. I apologize if my formatting is off, this is my first post. Any help would be appreciated.</p>
<pre><code>package commissioncalc... | 3 | 1,552 |
Paypal ios SDK not clearing previously used credit cards even after call to [PayPalMobile clearAllUserData] | <p>I'm integrating Paypal ios SDK version 2.1 into my app but have run into a problem.
The SDK seems to keep past payment cards in memory even though i call <code>[PayPalMobile clearAllUserData]</code> after the payment has been completed.</p>
<pre><code>@interface AirliftCartViewController : AirliftViewController <... | 3 | 1,261 |
How to add a sum of amount constraint in Laravel? | <p>I have a database with the following Relations: </p>
<p>There are <code>projects</code> - something people can purchase, also has <code>user_id</code>,</p>
<p>There are <code>backers</code> - the people that purchase,</p>
<p>There are <code>orders</code> - each order is a purchase of a <code>Project</code> by <co... | 3 | 1,698 |
Not all udp sent packets on localhost are displayed on wireshark | <p>I'm writing a simple udp traffic generator using C++ and PracticalSocket as socket wrapper (<a href="http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/practical/" rel="nofollow noreferrer">http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/practical/</a>) and I'm using Wireshark to check the output.
The issue i... | 3 | 1,239 |
UpdateView with my own made Custom_user_model in Django | <p>I want to use email as authentication so i made change in default user and made a new custom one by AbstractUser but when i am making view to update the profile that is not giving me any query showing Page not found No User matches the given query.
Here is sample codes</p>
<pre><code>**models.py**
from django.db im... | 3 | 1,815 |
Android keyboard set to a custom position on screen | <p>I want to create a custom Android keyboard. The requirements are quite simple:</p>
<ol>
<li>The keyboard should not cover the full width of the screen.</li>
<li>The keyboard should be located to the bottom right corner of the screen.</li>
</ol>
<p>I have managed to achieve the first requirement by changing the layou... | 3 | 1,681 |
How to insert character varying array into postgresql | <p>I want to insert a json array into postgresql?This is my code:</p>
<pre><code>def post(self,request):
request_data = '''
{
"name":"a",
"isbn":"dd",
"author":["a","b"],
"publisher":["a","b"],
"price":"ddd"}
'''
data = json.loads(request_data)
serializer =... | 3 | 1,175 |
Custom user in spring security ask for init | <p>I'm updating my spring security from 3.2 to 4.2. The problem is, I have extension of user where I store more information. And in the controllers I get this CustomUserDetails by adding the in the method "@AuthenticationPrincipal CustomUserDetails user". But now every time I call this controller gives me the following... | 3 | 4,594 |
A Little PIVOT Table Help Please | <p>I am having some serious troubles getting this PIVOT table in TSQL to work properly.</p>
<p>Here is some sample code to reproduce the source table...</p>
<pre><code>Declare @MyAssigneeTable table (
VDayID int,
VDate datetime,
Sta... | 3 | 1,277 |
Building Compile-Time Matrix Expressions | <p>I've just started using Eigen and have read from their documentation that the best performance comes from their lazy evaluation of matrix expressions. Hence, expressions like this are very efficient once evaluated:</p>
<pre class="lang-cpp prettyprint-override"><code>Eigen::Matrix<float, 3, 1> a;
a << 0... | 3 | 1,159 |
CakePHP validates() odd array return (1,2) value behaviour | <p>My validation is working just fine, but seemingly randomly, the retured values are not my model set validation errors, and nothing should be triggering the error, but a "1" or "2" is returned..</p>
<p>Even if all field data is valid, I sometimes get a return value in my array of "1" or "2"...</p>
<p>Here is my val... | 3 | 1,061 |
Is it possible to define classes with same name in same namespace but in different nested projects? | <p>I have one big project in Eclipse, which contains multiple nested projects. Each one of those nested projects is in a separate folder and is compiled and linked separately. At the end, each one of them outputs a separate static library. Then there are few executables which are linked against those static libraries. ... | 3 | 1,882 |
flask just refresh templated portion of page | <p>I have a simple flask app that uses templates. </p>
<p>Every time I click somewhere on the navigation (in the base.html) it refreshes the entire page, I'd rather it just refresh inside the template because I have collapsable elements in the navbar that go back to being collapsed when the entire page is reloaded. </... | 3 | 2,285 |
Auto-Complete adapter size gets reduced to zero | <p>I have a Main activity which have some tabs each displaying a fragment,among them one is camera fragment in which after capturing an image from camera, a popup appear in which there is an autocompletetextview named lure and a submit button.</p>
<p>The autocompletetextview(lure) adapter is set and its size is printe... | 3 | 1,374 |
Strange behaviour of changing UI in QT | <p>I am trying to modify UI. However I did not understand in some function I cannot modify UI. For example:</p>
<pre><code>// In this function there is nothing wrong.
void FindUser::on_btnBrowse_clicked()
{
browseFileName = QFileDialog::getOpenFileName(this, tr("Select Image"),
... | 3 | 1,150 |
Getting Orientation to work for media queries | <p>I am trying to specify css for ipad landscape and portrait mode, and for some reason, the landscape is not playing well. It looks like the landscape is just using the portrait mode. The website is <a href="http://darthvixcustomsabers.com/ascend.html" rel="nofollow">http://darthvixcustomsabers.com/ascend.html</a> and... | 3 | 3,189 |
Update ObservableCollecttion on objects property changed | <p>Hopefully someone can help me out with this. I am creating a Silverlight app which is used for editing images. A user has a project which contain layers which contain elements. (Elements are text and image elements).</p>
<p>I have a class which represents the project. It contains an ObservableCollection and each La... | 3 | 6,314 |
don't work onClick in buttons at list_view height = match_parent | <p>I think because my <code>ListView</code> is set to <code>layout_height="match_parent"</code>, the <code>Buttons</code> are not called <code>onClick</code> method.</p>
<pre><code>@Override
public View getView(final int position, View convertView, ViewGroup parent) {
if(convertView == null) {
Log.d(TAG_DE... | 3 | 2,213 |
AngularJS typeahead giving [filter:notarray] error on Ajax GET query | <p>I have an AngularJS 1.4.7 typeahead:</p>
<pre><code><input type="text"
class="form-control simpleinput"
placeholder="keyword"
name="searchbarFormInput"
id="searchbarFormInput"
ng-model="selected"
ng-click="selected=null"
ng-enter="doBlur($event)"
uib-ty... | 3 | 1,506 |
Applying Muenchian grouping to XSLT | <p>completely new to xlst, I've tried to follow numerous links to apply Muenchian grouping but to no avail, most likely because I'm not putting the extra lines in the right places probably, and have no idea how to convert to xlst2 in order to use for-each-group instead. Anyway the csv file I'm trying to convert is very... | 3 | 19,375 |
Spring MVC - Invalid view being executed (violating specified request mapping) | <p>I have been trying to debug it for like hours and even tried to create the same project over and again. I don't know whether it's the issue due to IntelliJ IDEA or something else. I tried to google but couldn't find any solution. I am making a simple spring mvc demo application in intelliJ. A default structure was p... | 3 | 1,575 |
How to print a multidimensional array that the user selected? | <p>The 3 options are name, batting order, and position. The user must pick which option he/she would like the values to be sorted. Currently, it prints the sorted batting order value because that's the last sorting order before I called echo. How do I make it so when the user picks an option, only the output of that op... | 3 | 1,522 |
How to replace partially asp.net page with a jquery ajax request? | <p>Let's say, I have a Listview control on the page. Each Listview item has 2 dropdownlists and 1 textbox. When the first dropdownlist has a selected value changed, the second dropdownlist should be populated with city depending on the first one. Finaly, when a value is selected for the second dropdownlist, a cost shou... | 3 | 1,109 |
Sort groups by arregate element property in xslt | <p>I'm transforming some xml using xslt (version 1.0, using MSXSL).</p>
<p>Say my xml data looks like this:</p>
<pre><code><table>
<record><name>A</name><value>a</value><size>10</size></record>
<record><name>A</name><value>b</value>... | 3 | 1,034 |
Image resizing problem with Python using Cat and Dog data | <p>I'm a newbei at Data Visualization, Machine Learning and Deep Learning topics. I'm trying to improve myself, but I stucked a topic when I try to implement a visualization. </p>
<p>In details, I tried to implement a kernel on 'Kaggle', my data is Cat and Dog images. I have train and test datas. The problem is that m... | 3 | 1,977 |
Closed Gallery without closing app [Android] | <p>I'm new in developers world. I have some problems with one issues. I upload a photo from my Gallery from on CreateChooser, but if I have want to go back because I realized that I don't want to upload the photo my app finish at all And I don't know how to make that when I closing the Gallery (chooser) goes to the pre... | 3 | 1,089 |
decltype does not resolve nested vectors. How can I use templates for nested vectors? | <p>I am trying to overload the + operator to deal with nested vectors. I thought the function would call itself until the nested vectors resolve to basic types, but instead I get a huge list of errors when I compile it. My vector operations that I have defined work for basic types, but not a variable amount of nested... | 3 | 1,623 |
Insert users id to the patient in Spring Boot | <p>I can't insert the id of the currently logged-in user while making the patient data.
I want the user to be able to add his own patients, but the problem is that when I add a new patient, the column id_user is null</p>
<p>I tried lots of ways but couldn't add id_user to the patient.
What do I miss?</p>
<p>This is my ... | 3 | 1,478 |
Get Dataframe from pandas groupby (pd.grouper) | <p>From the below data, i need to create daywise chunk through iteration</p>
<pre><code> data:
lable datetime value daytime
0 tag1 5/30/2022 0:00 361.378 2022-05-30 00:00:00
1 tag1 5/30/2022 0:01 344.072 2022-05-30 00:01:00
2 tag1 5/30/2022 0:02 321.001 2022-05-30 00... | 3 | 1,312 |
How to assign role and web page permission to a user using aspx? | <p>In my Web App I have the ability to create a user and role. But what I would like to do now is to assign a page to that user in that role.</p>
<p>So for example:</p>
<p>User1 is in role "Clients" and can only have access to WebForm1.aspx</p>
<p>As per below:</p>
<p><a href="https://i.stack.imgur.com/GiBX4.png" ... | 3 | 1,230 |
Unable to copy blob from one storage account to another | <p>I'm trying to copy a blob from one Azure storage account to another storage account (same subscription) but I get an exception:</p>
<blockquote>
<p>The specified resource does not exist.</p>
</blockquote>
<p>As I've realised, the problem is caused by the container being set to <code>Private</code>, which is what... | 3 | 1,384 |
Not able to see kafka messages produced from Java api in the consumer console | <p>I was trying to produce some messages and put into topic, and then getch the same from console consumer.</p>
<p>Code used :</p>
<pre><code>import java.util.Date;
import java.util.Properties;
import kafka.javaapi.producer.Producer;
import kafka.producer.KeyedMessage;
import kafka.producer.ProducerConfig;
pub... | 3 | 1,829 |
jquery datepicker highlight eventDates between two dates | <p>Please can you help me to solve these below issues in jquery datepicker</p>
<p>I want to highlight the start date '09/01/2015' to end date '09/30/2015' without adding every single day, like:</p>
<pre><code> eventDates[ new Date( '09/01/2015', 09/31/2015 )] = 'unavailable';
</code></pre>
<p>This is what my code... | 3 | 1,077 |
How to connect two people with firebase in flutter? | <p>I try to connect two people. <br/>
My plan: <br/>
1)The first one seeks someone's name(FirstPage)</p>
<ol>
<li>if firebase has no one with its nickname it returns <code>AlertDialog</code> with Text('No user is found'). <br/></li>
<li>In another case the second phone(User) gets an <code>AlertDialog</code> with Text('... | 3 | 1,710 |
How to dynamically retrieve the user who posted the ad to send him a message | <p><em>Hello, I am a beginner with symfony 5.3, I am working on a classified ads project, I cannot retrieve the user who posted the ad to send him a message, with my code below I retrieve in the form message to all users registered on the site.</em>
<strong>The controller:</strong></p>
<pre><code> #[Route('/users/messa... | 3 | 1,513 |
Surprising or wrong benchmarks of Where(predicate).FirstOrDefault() vs FirstOrDefault(predicate)? | <p>I know this question has been <a href="https://stackoverflow.com/questions/8059285/c-sharp-linq-whereexpression-firstordefault-vs-firstordefaultexpression">asked</a> <a href="https://stackoverflow.com/questions/9335015/find-vs-where-firstordefault">a lot</a> <a href="https://stackoverflow.com/questions/20394023/diff... | 3 | 2,570 |
Angular apollo - UI doesn't update after doing a query mutation update | <p>I'm working on an angular 6 app, using angular apollo. The issue I'm facing is that the UI does not update after deleting some items and updating the local apollo cache. I'm fetching a list of appointments from the server, and the user can delete them. When they delete I send a mutation to delete the item, which ... | 3 | 1,073 |
Need help on PHP array filtering | <p>I have this array in php, i want to select all casenumber those have dob and then select all links those not have any dob. How can I do that in php</p>
<pre><code>Array
(
[links] => Array
(
[0] => inquiryDetail.jis?caseId=0101SP085622015&loc=3&detailLoc=DV
[1] =>... | 3 | 1,252 |
testing for html/script injection and getting kicked from a server | <p>In researching an idea I came across a good <a href="https://www.youtube.com/watch?v=QSMbk2nLTBk" rel="nofollow noreferrer">YouTube video on security (with nodejs)</a> which covered a lot more than the usual SQL injection. One such was simple script and html injection through html encoding. javascript buffers etc. <... | 3 | 1,169 |
Popup in Xamarin is too long | <p>I tried to create a popup in Xamarin forms using Xamarin.Community.Toolkit. But unexpectedly Popup is too long and like vertically full-screen like this.
[My Screenshot][1]
How can I fix it.
My UI code is below.</p>
<pre><code><xct:Popup
xmlns="http://xamarin.com/schemas/2014/forms"
... | 3 | 1,143 |
python library for extracting table names from from clause in SQL Statetments, | <p>i have a complex SQL like below. I'm looking for a python (3+) library that would extract the table names that are contained in the from clauses. I'm mapping a client's database & views & reports, and have dozens of queries to map, so the need to automate the job.</p>
<p>Already looked at Python-sqlparse , s... | 3 | 19,216 |
Converting Hangfire into modular startup | <p>I am converting my startup code into new <a href="https://docs.servicestack.net/modular-startup" rel="nofollow noreferrer">ServiceStack Modular Startup</a> approach and have hit a snag.</p>
<p>I have this code in old startup</p>
<pre><code>public void Configure(IApplicationBuilder app)
{
app.UseHangfireDashboa... | 3 | 1,052 |
How to CURL in PHP as expected by openCPU file passing | <p>I am trying to generate a datatable on my HTML using ajax which calls a php to obtain JSON. </p>
<p><strong>HTML</strong></p>
<pre><code><div id="first">
<button type="button" id="fetch_with_scores" hidden = true >Calculate Scores</button>
</div>
<div id="mytable_with_scores_div" >... | 3 | 1,870 |
Difficulty sending REST API request with form-data in Powershell using C# static methods | <p>I am writing a script that needs to send an API request with some form data. </p>
<p>I am unfortunately unable to use Invoke-RestMethod's -Form option because I need to make this backwards compatible past v6.0.</p>
<p>I created a request in Postman and used their generated code snippet (similar to the strategy fou... | 3 | 1,303 |
Merging Database Tables Using Views and Unions and Innerjoin Views | <p>I have a situation where I want have a global view of all the data in multiple databases. Each database contains the same tables. </p>
<pre><code>Database: DB1
Table: Companies
CompanyID CompanyName
---------------------------------
1 Disney
2 Marvel
3 DC
Table: Employ... | 3 | 1,553 |
Apollo client & Absinthe - difficulty parsing errors | <p>I'm working with the @apollo/client and @absinthe/socket-apollo-link NPM packages in my React app, but I'm having some trouble parsing query and mutation errors received by <code>onError</code> in my implementation of the <code>useQuery</code> and <code>useMutation</code> hooks.</p>
<p>For example, here is the way I... | 3 | 1,393 |
How to properly create an Online Meeting with Micosoft Graph v1.0 with Application permission? I'm getting a Forbidden response | <p>Has anyone successfully used the <code>CreateOrGet</code> request to Microsoft Graph v1.0 to create an Online Meeting using Application permissions? I had the Application created on the Azure Portal, and with the client id and secret declare and initialize the <code>GraphServiceClient</code>.</p>
<p>I have a service... | 3 | 1,490 |
Same query on local/live site, vastly different performance | <p>My slow query log is showing 5,6+ second runs randomly of a seemingly normal query. Running the same query on my local clone of the site gives a 0.05s query run time. Here is the EXPLAIN of both:</p>
<p><a href="https://i.stack.imgur.com/rXCZR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rXCZR.... | 3 | 1,390 |
Java List to Thymeleaf Form Inputs | <p>I have a list in Java from a query of a stored procedure, what I want to do is pass the values of the list, to the inputs of the thymeleaf form, but I want to know how to pass that list in the controller and iterate it in the view, It is a Boostrap Modal, I would like help if I could do it with Ajax or with the th... | 3 | 1,944 |
Appcompatactivity with custom native (not compatibility) dialogpreference containing a TimePicker | <p>I am building a preferences / settings screen inside an Android <code>AppCompatActivity</code>. One requirement is a custom <code>[DialogPreference][1]</code> with a <code>TimePicker</code>.</p>
<p>The DialogPreference must be 'native', meaning not the compatibility version like described <a href="https://stackover... | 3 | 3,238 |
C# WPF window not positioned on the center when it's being shown from hidden state on the application startup | <p>I've built a C# WPF application where:</p>
<ul>
<li>It has a system tray icon.</li>
<li>It can accept a command line argument <code>--minimize-to-tray</code> to make the window hidden from the taskbar at the application startup, and to open it we have to double click at the sys tray icon or right click at the icon ... | 3 | 1,052 |
stack overflow error - maybe an infinite loop | <p>please excuse my ignorance as I am very new to programming. I'm currently trying to build a calculator project in which I need to have one Jframe class and a Java class. The jframe contains all the interface and the bulk of the calculation is on the java class. What I did is I created a method on the Java class and ... | 3 | 4,311 |
Show ProgressDialog in SQLiteOpenHelper onCreate method | <p>I'm new in android programming. I'm writing simple application that should execute sql file, in first run. But it seems that this process take couple of seconds so I figure that application should show progressDialog while it will be executing sql file. But when I try to run application, dialog is showing with messa... | 3 | 3,614 |
How do I model something like this? (section-teacher relationship) | <p>I have this homework that I gotta finish, but then something about it is really bugging me. I've been thinking about this, but I think my approach is flawed. Well, it really is, since I tried it, and it just gave me a stackoverflow exception thingy. Anyhow, here is a snippet of the specs that was given to me by the ... | 3 | 3,194 |
AudioSegment unable to find ffmepg and ffprobe | <p>I am attempting to load an mp3 file in jupyter notebooks using AudioSegment in python. I have already tried following the instructions from <a href="https://stackoverflow.com/questions/57350259/filenotfounderror-errno-2-no-such-file-or-directory-ffprobe-ffprobe">this</a> link and <a href="https://stackoverflow.com/q... | 3 | 2,113 |
Nginx Load Balancing HTTPs cluster | <p>I watn to use Nginx as load balancer for Consul cluster. The Consul cluster is reachable only with TLS.</p>
<p>Here I've tried to reverse proxy a single Consul server to check if the TLS certificates are working</p>
<pre><code>server {
listen 80;
listen [::]:80;
location /consul/ {
resolve... | 3 | 1,633 |
How to define an image from the database stored in binary as a div background image? | <p>I have an image that is stored in the database in <strong>binary form</strong>. I have rescued this image (with a select) and would like to insert it as a div's <strong>background image</strong>. I can only enter it as src of an img.</p>
<p><strong>How to Store in Database:</strong></p>
<p><div class="snippet" dat... | 3 | 1,211 |
PreferenceFragmentCompat Theme issue | <p>I'm using PreferenceFragmentCompat for my Preference Page</p>
<pre><code>public class SettingsFragment extends PreferenceFragmentCompat{
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
setPreferencesFromResource(R.xml.pref_page, rootKey);
} }
</code></pre>
<p>and i'm... | 3 | 1,743 |
Enforce equal rows height for small screen | <p>I am using this <a href="https://nespero.com/fluent/jquery/docs/content/table/" rel="nofollow noreferrer">Bootstrap tables</a> from Fluent Kit framework and as you can see on small screen, text in cells goes to the new line instead of expanding for all the width available, which is infinite as it's inside the <code>... | 3 | 1,660 |
Java Batteship: text is printed twice instead of once in case of a hit | <p>I wrote a piece of code to implement a Battleship game. The method <code>isHit</code> is meant to check whether player input leads to hitting a ship or not. It does so by looping through an int[3][2] (<code>ships</code>) holding coordinates of the ships and comparing these with the coordinates provided by the user. ... | 3 | 4,113 |
Problem structuring two factor authentication | <pre><code>const login = (req, res) => {
// console.log(req.body);
// let email = req.body.email.toLowerCase();
sequelize.models.User.findOne({
where: {
email: req.body.email,
},
})
.then(async (user) => {
if (!user) {
// console.log(" email not found is true");
... | 3 | 1,846 |
Trying to consolidate Forms into a Sheet | <p>I'm trying to build an apps script that will take a whole bunch of forms and consolidate their answers onto one spreadsheet. I don't need all of the answers, just the ones to Yes/No questions, and it doesn't really matter what format those yes/no answers come into the spreadsheet as as long as I know which is for ye... | 3 | 2,059 |
Why is these code giving me an sigsegv error? | <p>Why is these code giving me a RUNTIME SIGSEGV ERROR. I have tried running the code and works perfectly in codeblocks but some IDE is giving me these error.</p>
<p>It takes a Fibonacci series then modulus each number in the series and only takes up the numbers at eve places till a single number is obtained.</p>
<p... | 3 | 1,405 |
Merge Sort in Python - RuntimeError: maximum recursion depth exceeded | <p>I am working on merge sort in Python.</p>
<p>I have checked <code>merge</code> function. The arrays are merging fine.</p>
<p>But in the <code>mergeSort</code> Function an error is coming :---</p>
<blockquote>
<p>RuntimeError: maximum recursion depth exceeded.</p>
<p>RuntimeError ... | 3 | 1,082 |
How can I fix my code? Quick-sort fill with random numbers | <p>I am writing a code using quicksort but can't seen to make it work.</p>
<p>I have declared my array to size 20 and filled it with random integers. Then I called my <code>sort</code> method to do the quicksorting. The <code>show</code> method just prints the output. Still my code doesn't work at all.</p>
<p>My enti... | 3 | 1,116 |
How to use Many-to-many relationships | <p>I am using <strong>Many-to-many relationships</strong> in my app and I am not able to feed data into the table which is by default created by the Django to ensure the Many-to-many relationships.It gives the error in method (<strong>def Set_Checkout_Attributes(request):</strong>) that <strong>'Customer_check_attribu... | 3 | 1,379 |
K_SPACE bug pygame | <pre><code>from pygame.locals import *
import random
import pygame
from pygame.constants import K_RIGHT
# Initialize the pygame
pygame.init
# create the screen
screen = pygame.display.set_mode((800, 600))
# background
background = pygame.image.load('bg.png')
# Title and Icon
pygame.display.set_caption("Space ... | 3 | 1,147 |
Blender 2.9 + Python script – Need help adding multiple action clips / action strips to an NLA track | <p>How can you add multiple action clips to a single NLA track in Blender 2.9 using a Python script?</p>
<p>I'm trying to loop through a file with rows of:</p>
<pre><code>frame_number=X, object_name=Y, animation=Z
</code></pre>
<p>e.g.</p>
<pre><code>frame_number=1235, object_name=31, animation=action_off
</code></pre>... | 3 | 1,298 |
Passing a PHP variable with fetched data to a JavaScript variable returns NULL or empty | <p>I have an issue with returning the value of a PHP variable in JS. It returns <code>NULL</code> or empty instead of returning the age.</p>
<p><strong>Approach:</strong></p>
<p>Passing PHP variable with data to a JS variable in a separate file. Display JS variable in an <code>alert()</code>. Data was fetched from th... | 3 | 1,639 |
dynamic template adds empty value on ng-repeat | <p>I have been trying to make a query builder for my own purpose.
This plunker <a href="https://plnkr.co/edit/95VgJfH9nIScwApXyKOu?p=preview" rel="nofollow noreferrer">https://plnkr.co/edit/95VgJfH9nIScwApXyKOu?p=preview</a> has my work so far,</p>
<p>When I select a parameter and Click on add, it adds up in the JSON... | 3 | 2,219 |
Error with RailsApps starter app for rails-devise-roles tutorial | <p>Hello I am trying to install the starter app for rails-devise-roles from RailsApps. I have done one of their previous basic tutorials, but it has been about four months. I'm not sure if I need to update something. I am using a mac with terminal input. </p>
<p>When I run this command:
ails new rails-devise-roles -... | 3 | 8,951 |
How can I get "index out of range" when I am not indexing | <p>Long time programmer - total newbie in go.</p>
<p>Here's the code. It is my first attempt at a generator. I am trying to generate an lfsr sequence. Essentially, every time around you shift right one. If you just shifted out a <code>1</code> bit, xor with the <code>tap</code> value.</p>
<pre><code>package main
imp... | 3 | 1,215 |
Android ADT Fails to Run Project | <p>I just upgraded from Windows 8 to Windows 8.1 and found that my android ADT fails to run a project. I tried to uninstall and install my JAVA JDK several times but it did not work. Can anybody help? In the below is the log. </p>
<pre><code>A fatal error has been detected by the Java Runtime Environment:
Internal Er... | 3 | 3,005 |
After localization i get clang: error: linker command failed with exit code 1 | <p>I just translated my entire app into another language by adding localization to some of my nib and .m files and after I got done and I tried to run the app I get the following error.</p>
<blockquote>
<p>Ld
"/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Prod... | 3 | 1,054 |
If statement ignoring zero? | <p>This program reads two files and stores them in two arrays. array1 is the data and array2 is the type that corresponds to it. ex array1: 183, 183, 182, 195.3, 187 array2: 1, 1, 1, 2, 2 it sets the repeated numbers in the array1 to 0 and sets the corresponding number in array2 to zero. Ex: array1: 0, 0, 182, 195.3, ... | 3 | 1,939 |
Trait's type member requires to be Send | <p>I have two traits: <code>Processor</code> and <code>Persist</code>. The first one is responsible for processing some entity, the second one is for <em><strong>asynchronous</strong></em> persisting the processed entity.</p>
<p>Given the two traits I want to implement the <code>trait ProcessPersist</code> taking care ... | 3 | 1,423 |
How do I get my picture captions to be responsive? | <p>I am trying to get my captions to be responsive when I resize the screen width. I am finding that one column of my pictures (the left) has a caption that sticks to it, but the second column's captions do not, and are positioned under the first column's unless I position them specifically (and then they are not resp... | 3 | 1,455 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.