title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
my simple loss function cause NAN
<p>I have write a customer loss for myself, but after several steps, the loss became nan, my code is </p> <pre><code>def my_loss(label_batch, logits_batch, alpha=1.3, beta=0.5): softmax_logits_batch = tf.nn.softmax(logits_batch, axis=-1) indices_not_0 = tf.where(tf.not_equal(label_batch, 0)) # not-zero indic...
3
2,126
Distance between 2 user defined georeferenced grids in km
<p>I have 2 variables 'Root zone' and 'Tree cover' both are geolocated (NetCDF) (which are basically grids with each grid having a specific value). The values in TC varies from 0 to 100. Each grid size is 0.25 degrees (might be helpful in understanding the distance).</p> <p>My problem is "I want to calculate the dista...
3
1,540
Jsoup returns Status 400
<p>I want to crawl data from this URL : <a href="http://www.expedia.co.jp/Osaka-Hotels-Hotel-Consort.h5522663.Hotel-Information?chkin=2017/12/13&amp;chkout=2017/12/14&amp;rm1=a2" rel="nofollow noreferrer">http://www.expedia.co.jp/Osaka-Hotels-Hotel-Consort.h5522663.Hotel-Information?chkin=2017/12/13&amp;chkout=2017/12/...
3
1,416
Firebase Cloud Message Notification being received in Console but not being displayed in phone - Swift App
<p>So I'm trying to implement Cloud Messaging with Firebase Functions for a message center in my app. My firebase function says it is already working and I do receive the message in my console log, however, the notification is not being deployed in my phone on background mode.</p> <p>I've implemented the permission to ...
3
1,989
no viable constructor copying array element of type 'MyString'
<p>I was supposed to get a output like this:</p> <pre><code> 1. abcd-efgh-abcd- 2. abcd- 3. 4. abcd-efgh- 5. efgh- 6. c 7. abcd- 8. ijAl- 9. ijAl-mnop 10. qrst-abcd- 11. abcd-qrst-abcd- uvw xyz about big me take abcd qrst-abcd- </code><...
3
1,965
Angular2 - Check-All box is selecting disabled inputs
<p>I have a simple component where there is a table that contains a <code>CheckAll</code> checkbox and then each table row contains a checkbox for that individual row.</p> <p>There are some pieces of criteria that will disable a row from being selected and this is reflected using the <code>[disabled]</code> directive ...
3
1,294
How I can remove a ADUser with System.Management.Automation in C#?
<p>I use System.Management.Automation for work with the powershell and c# and I want to use the Remove-ADUser command but I get a error: Here my Code. </p> <pre><code>public bool RemoveADUser(string sAMAccountName) { Security key = new Security(); try { ADPASSWORD...
3
1,290
BSD socket not working
<p>UPDATE: src updated based on suggestions. strcat a \n\0 onto command and changing sizeof. Client has a "Succeed" on sending, but server never "succeeds" on receiving.</p> <p>I have put a lot of working into trying to get a regular old TCP socket working. I basically have a simple client and a server setup. Currentl...
3
2,549
Gradient Accumulation with JAX
<p>I made a simple script to try to do gradient accumulation with JAX. The idea is to have large batch size (e.g. 64) that are split in small chunks (e.g. 4) that fit in the GPU's memory. For each chunck, the resulting gradient, stored in a pytree, is added to the current batch gradient. The update is done only when al...
3
1,540
ServiceStack marker Attribute not found in Collection
<p>I have a custom attribute and I want to check via a GlobalFilter, if the methods I'm calling has this marker attribute. I can't find a way, to get the information that the called method where my request aims to has the Attribute. I've found already another post, which recommends to use <code>FilterAttributeCache.Ge...
3
1,176
RxSwift: tap a button to do a request with Alamofire, how to make it work?
<p>I have some UI rx button tap, I want to connect it to the network rx part.</p> <p>Here is Rx btn tap part:</p> <pre><code>btn.rx.tap.take(1).flatMap { [unowned self] () -&gt; Observable&lt;Bool&gt; in // ... return NetManager.standard.request() }.debug().do(onNext: { _ in ...
3
1,731
How do i add items to a observablecollection from another list view
<p>Hi I am a beginner with Xamarin forms and need some help. I have tried looking for this method everywhere.</p> <p>I have a List view with a lot of animal names. When a item is clicked it shows more info about that particular animal. I have added a button that is on each animals info page. I would like to click that ...
3
2,608
how to implement a recursive deletion in ruby on rails ?
<p>I'm making an app in ruby on rails, similar to <code>Reddit</code>, along the project I decided to use recursion on the <code>Comment</code> model using a <code>polymorphic association</code>. </p> <p>Recursive deletion Article &lt;- Comment &lt;- Comment and so on</p> <p>The problem is that when I delete the Art...
3
1,211
IdentityServer4 is returning a valid token whether the userid and password combinations are valid or not
<p>I am writing an Angular4 application and I want to use a RestFul API with IdentityServer4 for authentication/authorization. To get the process started I downloaded the GitHub IdentityServer4Demo project. I made the demo work and decided to add a <strong>ResourceOwnerPasswordValidator</strong> and <strong>ProfileServ...
3
1,673
play all videos from gallery ios
<p>i want to play all videos from gallery directly, but in this code last video is played every time, what should i do to play all videos in a sequence one by one</p> <pre><code> ALAssetsLibrary* library = [[ALAssetsLibrary alloc] init]; [library enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:^(ALAssetsGrou...
3
2,234
Cuda v10 conflicts during installation
<p>I need to install cuda v10.</p> <pre><code>conda install -c anaconda cudatoolkit=10.0 </code></pre> <p>Here is my <em>conda list</em> for now:</p> <pre><code># # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex ...
3
4,986
Using netfilterqueue I can't ping correctly when modifying a packet and sending it with scapy?
<p>I have a program that captures packets on my kali virtual machine and stores them in a queue table by the commands:</p> <pre><code>iptables -I INPUT -j NFQUEUE --queue-num 0 iptables -I OUTPUT -j NFQUEUE --queue-num 0 </code></pre> <p>So the queue number is 0, and here is the program I wrote:</p> <pre><code>import n...
3
1,976
Scrapy SitemapSpider - How to yield entry from sitemap_filter to parse
<p>I'm building a SitemapSpider. I'm trying to filter sitemap entries to exclude entries that contain this substring '/p/' in the link:</p> <pre><code>&lt;url&gt; &lt;loc&gt;https://example.co.za/product-name/p/product-id&lt;/loc&gt; &lt;lastmod&gt;2019-08-27&lt;/lastmod&gt; &lt;changefreq&gt;daily...
3
1,138
Network Load Balancing
<p>Network Load Balancing, in GCP.</p> <p>System used : 3 Servers System - &gt; Nginx &lt;--&gt; PHP-fpm (using instance groups) &lt;--&gt; NFS. Nginx &lt;--&gt; NFS</p> <p>Now i used health checking but sometimes health check restart the apps that still running and pass through network with not in a good way (means so...
3
1,144
How to listen for changes in android studio using firebase
<p>I am having a hard time reading changes on my firebase. What I am trying to do is for every change when the start button is triggered a dialog will show saying, "This has already been executed." </p> <p>I tried using addListenerForSingleValueEvent but it seems that the dialog only showed when all of the children ha...
3
1,865
Swift login session rootController UserDefaults error
<p>i try to make login session for login, and just any other login session when user is logged in they go straight to Main Menu, and i havent logged in yet but i go straigth to main menu, any help? </p> <p>here is my code : </p> <pre><code> func Login() { let Email = EmailField.text! let Pass = PasswordFi...
3
1,413
Unresolved name `Binary` when using the ftp crate
<p>I am downloading a file from a FTP server using <a href="https://crates.io/crates/ftp" rel="nofollow">the ftp crate</a>:</p> <pre><code>extern crate ftp; extern crate chrono; use std::env; use std::fs::File; use std::str; use std::io::{Result, Write}; use ftp::FtpStream; use chrono::*; fn main() { let args...
3
1,206
EF model class - Linq select to a non database property
<p>I've designed these below tables and I've mapped it using the EF 6, so when I try to select one Company with all documents and the individual type for each document, the EF returns the nested data from the ListCompanyDocumentsTypes. Ive tried some methods - see below</p> <p><strong>Tables</strong> <a href="https://...
3
1,492
What is wrong with my last if statement that checks for a draw in tic tac toe? Can I use a loop?
<p>I am trying to check if there is a draw in the tic tac toe game. This is a user vs user tic tac toe game, it identifies the winner correctly. I am having problems with my last if statement where I attempt to check for any draws. Can I get any guidence in creating a loop or if statement that checks if there is no win...
3
4,223
net::ERR_CONNECTION_TIMED_OUT for a POST request from REACT.js front-end to node.js back-end after deployment
<p>I have been trying to solve a problem with my app after deployment, before deployment on my local server and local network. http://localhost:3010 and <a href="http://192.168.XX.XXX" rel="nofollow noreferrer">http://192.168.XX.XXX</a> where my Node.js backend connects to my react front-end and works fine. That is, PO...
3
1,118
Fill a grid with the same component dynimically . Is there an adapter to fill it?
<p>1- I have a main grid and a scrollviewer inside the main grid;</p> <p>2- I want to display something like a list of programs of a tvshow.</p> <p>3- I used the scrollviewer to allow the user to scroll down and up the list of tvshows I want to show. </p> <p>4- Inside the scrollviewer there is another grid that I ...
3
3,496
Decomposition of essential matrix leads to wrong rotation and translation
<p>I am doing some SfM and having troubles getting R and T from the essential matrix.</p> <p>Here is what I am doing in sourcecode:</p> <pre><code>Mat fundamental = Calib3d.findFundamentalMat(object_left, object_right); Mat E = new Mat(); Core.multiply(cameraMatrix.t(), fundamental, E); // cameraMatrix.t()*fundament...
3
1,665
What appears to be a .net bug is happening after every recycle of a worker process. Only occurring when I'm using entity-framework
<p>I've written a vb.net project (.net 4) that seems to work perfectly on my windows 7 machine, and seems to work fine when published to a windows server 2003 server.</p> <p>The issue comes after a few hours on my server, I get the infamous "Unable to load one or more of the requested types. Retrieve the LoaderExcepti...
3
1,368
istio outlier detection breaking routing with no metrics
<p>we have been using istio for some time, but have recently discovered an issue we cant explain with outlier detection. We have 50+ microservices and have discovered that on some of them &quot;atleast 2-3&quot; traffic does not seem to be load balancing we have tracked this down to outlier detection as once we remove...
3
1,333
Flutter background image "Unable to decode bytes as UTF-8"
<p>I am working on a flutter app, and want to use a background image. Here is my code so far which I got from the following stack overflow page: <a href="https://stackoverflow.com/questions/44179889/flutter-sdk-set-background-image">Flutter SDK Set Background image</a></p> <pre><code>import 'package:flutter/material....
3
1,115
e.IsInertial almost always false WPF
<p>I have the following XAML for my WPF app, which I am converting from UWP:</p> <pre><code>&lt;ScrollViewer Name="scv_main" Grid.Row="2" ScrollViewer.VerticalScrollBarVisibility="Auto" PanningMode="VerticalFirst"&gt; &lt;TextBlock Name="txbl_display" Grid.Row="2" Foreground="White" FontFamily="Lucida Conso...
3
1,805
cannot get sqlite to display output
<p>I'm quite new with sqlite and i've been trying to get sqlite to output to UIcomponents to no avail. I've got a nudging feeling its syntax. Any pointers? Thanx in advance. sql structure: |ROW|QUESTIONS|ANSWER|CHOICE1|CHOICE2|CHOICE3|CHOICE4|</p> <p>.h:</p> <pre><code>@property (nonatomic) NSInteger *q_num; @propert...
3
1,204
Change List View Header and Group Header Vertical Order
<p>Using xamarin forms. I have list view contains header and group header like below.</p> <pre><code> &lt;ListView x:Name="Groups" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" SeparatorVisibility="Default" RowHeight="100" HasUnevenRows="True" IsGroupingEnabled="True" Header=""&gt; ...
3
1,054
Issue creating login page with spring hibernate and mysql using spring security
<p>I am creating a simple login web application using spring mvn with hibernate and spring security, but getting the following error. Application works fine when I remove spring security. I don't know how to fix the issue.</p> <pre><code>INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Des...
3
5,133
How to filter map of map using java stream
<p>How can I filter map of map using java stream. I can do it using double loop but I think this is not efficient. </p> <pre><code>public class MapUsage { static Map&lt;Integer, Map&lt;Integer, String&gt;&gt; parentMap = new HashMap&lt;&gt;(); static Map&lt;String, String&gt; userRole = new HashMap&lt;&gt;(); ...
3
1,045
How to access store state from a different store module in vuex?
<p><strong>EDIT</strong>: I found the solution which simply was passing the token as an argument in the mounted() function in my vue module:</p> <pre><code>mounted(){ this.$store.dispatch(&quot;fetchData&quot;, this.$store.state.auth.user.token) </code></pre> <p>and in the store I use my async function like this:</...
3
1,220
Wrong iteration while printing a multiple page(Possibly printer or PDF) document using Java Printing API
<p>I am using Java Printing API and have got the code of printing multiple page document of billing invoice from this oracle page.</p> <p><a href="https://docs.oracle.com/javase/tutorial/2d/printing/set.html" rel="nofollow noreferrer">Printing a Multiple Page Document</a></p> <p>And Example code from this page</p> <p><...
3
3,043
I'm getting errors while installing pygame on my Chromebook, and to make matters worse, the website is down? Please tell me why
<p>I am trying to install pygame on my Chromebook (using the Linux 'Terminal' app included with Chrome Developer Mode) with the following command:</p> <p><code>python3 -m pip install -U pygame --user</code></p> <p>I found these instructions HERE: <a href="https://www.pygame.org/wiki/GettingStarted" rel="nofollow norefe...
3
1,089
How to attach a div to input value in rendered list?
<p>I need to append a div to the input value in the list so I can add a style class to the div and move the input value text further to the right. This is the only way I can think of to style the input value text. Can this be done? Is there a better way to do it? Here is what I have so far. I am trying to avoid using i...
3
1,851
Moving sections between each other with long press in TableView
<p>I have a <code>tableview</code> which includes expandable and collapsible cells with using section. You can see below my example code part.</p> <pre><code>class MainViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var mainTableView: UITableView! var allSections = [AllS...
3
1,276
Console Calendar with stringbuilder calendar sheet
<p>I'm working on a console based calendar as an educational task (school). It needs to display a calendar sheet for the specific month the user enters. I'm almost there, but I noticed that now all months start on a monday. I created the sheet with a stringbuilder, and I tried to fill the days before the first day of t...
3
1,048
Solr - Suggester not returning any suggestiions
<p>I'm trying to setup the <a href="http://wiki.apache.org/solr/Suggester" rel="nofollow noreferrer">Solr suggester</a> module. </p> <p>I've followed the <a href="https://cwiki.apache.org/confluence/display/solr/Suggester" rel="nofollow noreferrer">guide</a> and setup my core as such:</p> <p>solrconfig.xml</p> <pre>...
3
1,319
.net 6 console app : Pre-Compile not work well, neither Crossgen or Publish with ready to run or Publish to Signal App
<p>i want to pre-compile my .net 6 code to speed up first call of the method, something like <a href="https://docs.microsoft.com/en-us/dotnet/framework/tools/ngen-exe-native-image-generator" rel="nofollow noreferrer">ngen.exe</a> do during NetFamework age.</p> <p>I have a .net 6 testing console app, as simple as below:...
3
1,537
By default the 1st accordion should be set to open without clicking on it in Angular2?
<p>Hey guys i need help in solving this problem. I have made use of *ngFor loop for accordion and in this i need the first accordion to be open by default. Can anyone please help me with this. Here is my Angular2 code.</p> <pre><code>&lt;div class="today col-lg-9 col-md-12 col-sm-12 col-xs-12"&gt; &lt;md-card ...
3
1,935
How To Add Same CSS Class To Change A Width
<p>I have a problem on my website. I can't figure out why the CSS code is written to control the whole menu drop down. </p> <p>If I put the css class width to <strong>none;</strong> It'll put the alignment of the brands category drop-down in the correct 2 column 5 row format. But it lets the product images in the cate...
3
3,848
Yii: Can not list data in Grid View
<p>I cant list data in grid using yii framework.My controller is Sitecontroller.php,My view is list_jobseeker.php .I got the error "Fatal error: Call to a member function getData() on a non-object ".Anybody help me?</p> <p>My controller code</p> <pre><code> public function actionlist_jobseeker() { $session_id=Yi...
3
1,623
Find key in array in a foreach
<p>I have this foreach function:</p> <pre><code>foreach($total_data as $arrays){ //debug //print_r($total_data); //exit; if($arrays['code']=='d_payment_fee'){ $dpaymentfeetext = ' - '.$arrays['title']; $dp...
3
1,390
Python Google Admin SDK 403 Error
<p>I am attempting to retrieve all the members of a group but am receiving an error.</p> <p>Here is my code:</p> <pre><code># -*- coding: utf-8 -*- from __future__ import print_function import httplib2 import os from apiclient import discovery import oauth2client from oauth2client import client from oauth2client im...
3
1,448
p:dialog doesn't work in explorer and chrome, but works in eclipse internal web browser
<p>i have the following XHTML code</p> <pre><code>&lt;ui:define name="content"&gt; &lt;center&gt; &lt;h:form id="form"&gt; &lt;p:growl id="messages" showDetail="true" /&gt; &lt;p:panel header="Selectionner un fournisseur" style="width : 664px; " &gt; &lt;br /&gt; &lt;p:dataTable id="cars...
3
1,137
How to pass a variable from PHP to Android Studio (made with android Volley)
<p>I have a working registration/login app. I built it using an Android volley that uses String Request. After logging in, I need to put the user id into an edittext or textview to pass it into another page. </p> <p>Here's my PHP code:</p> <pre><code>&lt;?php if($_SERVER['REQUEST_METHOD']=='POST'){ include 'Databas...
3
3,557
Json response in Go(Gin) without escape characters
<p>I have recently started working on Go APIs using GIN. My API is getting the data from DB with two columns where one column contains integer and other contains a json string. The json string is dynamic and hence i cant use struct for that. I am using <code>map[string]interface{}</code> to parse the json and modify it...
3
1,319
Insert data in table depending on 2 other tables
<p>I have a problem with filling a 3rd table depending on the data of 2 other tables. I have no idea how to solve my problem and I hope someone could show me in the right way or maybe the right way itself. I'm not very experienced with SQL so I probably don't know something which makes me search in the wrong direction...
3
1,218
Spark .toDF() returns linkage error : duplicate class definition
<p>I want to convert a RDD to Dataframe and I'm pretty sure I follow the rules on doing it but it seems that this error is keeping my code running.I don't know hot to resolve the thing duplicate class definition.</p> <p>Here is my code in spark:</p> <pre><code>val auctionDF = auctionsRDD.toDF() </code></pre> <p>Here...
3
9,285
Compilation failed app:compilieDebugJavaWithJavac
<p>I have been developing one android application with Android studio 2.1.3. Recently I updated my Android Studio to 2.2.3. Now my application giving app:compilieDebugJavaWithJavac error. Here is screenshot <a href="https://i.stack.imgur.com/NqUfn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NqUf...
3
2,019
Java - Saving to text file
<p>I am working on a small library application which allows the user to store, borrow, return and delete technical manuals.</p> <p>I have almost completed the application and now I wish to enable the library to be saved to an external txt file automatically once the user selects option 1 from the main menu, to view th...
3
4,207
Ajax accordion, specific data from a dataset, multiple datasets or distinct data from a dataset possible?
<p>What i have accordion being loaded with an issue, I want distinct header information and multiple rows in the content.</p> <p>For example I have a DataTable with the following:</p> <pre><code>Fruit|Apples Fruit|Mango Vegetables|peas </code></pre> <p>I want it to result like this</p> <pre><code>Fruit -Apple...
3
1,121
Is there any way to replace Response.Write?
<p>My problem is, I have the following function:</p> <pre><code>function change_tarif(param) { var arrTarif = &lt;% Response.Write(Session[&quot;Tarif&quot;]); %&gt; ..... } </code></pre> <p>Session[&quot;Tarif&quot;] - contains multidimensional array List and when I'm loading my page it's giving this Error tha...
3
1,100
Getting error You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports
<p>Could you please to help me to solve this issue, I am trying to render chart using chartjs in reactjs. Here are my Codes:</p> <p>file chart.component.js</p> <pre><code>import React, { Component } from 'react'; import { Pie } from 'react-chartjs-2'; export default class Chart extends Component { constructor(pro...
3
5,406
Unpacking pands read_HTML dataframe
<p>I am trying to scrape data from a website: <a href="https://www.oddsportal.com/american-football/usa/nfl/" rel="nofollow noreferrer">https://www.oddsportal.com/american-football/usa/nfl/</a></p> <p>This link displays the upcoming games.</p> <p>Currently, I have tried using pandas to read the html data retrieved by S...
3
1,916
Fastest approach to using raw sockets in .NET
<p>I am trying to improve the performance of .NET 5 based network code to improve the throughput. I have been using the standard .NET Sockets implementation - but have hit something of a brick wall when it comes to throughput at around 200Mbps (1kb packets). I have tried both variants of async pattern (Begin... and Sen...
3
1,273
Apache2 server failed to start due to error in conf
<p>I am trying to start the apache2 server installed on Ubuntu 22.04 LTS Desktop. However the restart failed and from what I can see in the error log, it is related to my configuration. However I cannot debug further on the exact issue. My apache2 server configuration is as below.</p> <pre><code>cat /etc/apache2/sites-...
3
1,673
C# Plugin- Break up array on every second ","
<p>I have made a FetchXML query that returns data from my CRM2013 grid The data is passed into a list Which is then turned into a CSV file with the following code;</p> <pre><code>EntityCollection result = service.RetrieveMultiple(new FetchExpression(fetchxml)); foreach (var c in result.Entities) { ...
3
1,426
Cursor != null but null?
<p>Im trying to update the "html" column in every row in my database when the app is synchronizing. I've used this tutorial <a href="http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/" rel="nofollow">Here</a> to add the app to the "profile" list. This is the code I use in the SyncAdapter:</p> <pre>...
3
2,769
Why is my custom function printing my row names in addition to the data?
<p>I have the following custom function that I am using to create a table of summary statistics in R.</p> <pre><code>regression.stats&lt;-function(fit){ formula&lt;-fit$call; data&lt;-eval(getCall(fit)$data); abserror&lt;-abs(exp(fit$fitted.values)-data$bm)/exp(fit$fitted.values); QMLE&lt;-exp((sigma(fit)^2)/2)...
3
1,063
How to reduce response time while data display , which is parsed by SOAP service
<ul> <li>I am trying to Parse SOAP data [using NSURLConnection, as I am not getting to use NSURLSession]</li> <li>and trying to display that on multiple UILabels</li> </ul> <p><strong>Issue is - when printing response data on Console it is printed quickly, but It is taking too much time (50-60 sec) to display on label...
3
4,358
recording user voice android
<p>I am trying to make an application which should first record the user's voice and then calculate different things (e.g. spectrum) from the recorded file. I can't play the recorded file (I can't find that file - does it even record?). Here is my code:</p> <pre><code>package com.example.annik.puhesovellus; import an...
3
1,625
ko.toJSON did not convert JS object into JSON string
<p>inside my view model i have the following JS object which contains the observable values</p> <pre><code>var COAData = { ACCOUNT_CODE: self.ACCOUNT_CODE, ACCOUNT_NAME: self.ACCOUNT_NAME, ACCOUNT_DESCRIPTION: self.ACCOUNT_DESCRIPTION, OPENING_BALANCE: se...
3
1,116
Sql query returning different results in php from those in mysql shell
<p>This question is originates from an <a href="https://stackoverflow.com/questions/38308273/inserting-data-into-a-mysql-table-dynamically">earlier question</a>. </p> <p>When i run this script on mysql shell (see below)</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fals...
3
2,343
Is there a way to add interface instances to an ArrayList in Java?
<p>I found <a href="https://stackoverflow.com/questions/2752192/array-of-function-pointers-in-java">this</a></p> <p>In which the accepted answer is almost perfect, but I would like to instead add the elements to an ArrayList. Is this possible?</p> <p>I'll try to be concise: I'm creating a JavaFX application and I have ...
3
2,611
C# WndProc method not receiving expected Msg type
<p>I've been trying to communicate with another software using its documented COPYDATA API. User Xanotos has been incredibly helpful <a href="https://stackoverflow.com/q/65497215/4700011">in this question I asked</a> which has the sending method sorted and working fine. I am having issues that the receiving <code>WndPr...
3
3,213
Transform dataframes into matrix in Python for hashtag sets
<p>Here is my dataset 'new.csv'. Also I post a glance overview here:</p> <p><a href="https://drive.google.com/file/d/17xbwgp9siPuWsPBN5rUL9VSYwl7eU0ca/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/17xbwgp9siPuWsPBN5rUL9VSYwl7eU0ca/view?usp=sharing</a></p> <pre><code> Dominant_Topic Has...
3
1,255
Error security.firewalls.access_control symfony
<p>Hello i have this error :</p> <blockquote> <p>Unrecognized options &quot;0, 1&quot; under &quot;security.firewalls.access_control&quot;. Available options are &quot;access_denied_handler&quot;, &quot;access_denied_url&quot;, &quot;anonymous&quot;, &quot;context&quot;, &quot;custom_authenticators&quot;, &quot;entry_p...
3
1,137
Two tables, other one doesn't stay centered?
<p>I'm having a problem building my portfolio. So I have my photos inside tables and I've centered them in css. For some reason when I added a header and a new table with new photo the new table isn't centered for some reason. It gets centered when I have it open on the tab and make the tab smaller but when its as big ...
3
2,063
OpenGL ES 2.0 - Blending issue with text (iOS)
<p>I have grey shadows around texts when I blend them with OpenGL. </p> <p><a href="https://i.stack.imgur.com/uTpm9b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uTpm9b.png" alt="enter image description here"></a></p> <p>Currently, this is my blending function :</p> <pre><code>glBlendFunc(GL_SR...
3
1,880
Can't index a dict in a list comprehension
<p>I'm attempting to extract a <code>list</code> from a <code>list</code> of <code>dict</code>s. Each <code>dict</code> in the list has a single key-value mapping. I want to create a <code>list</code> of that single value mapped in each <code>dict</code> contained by the <code>list</code>.</p> <p>See below the code an...
3
5,602
LINQ to SQL generate "null" instead of "not null" from sql server function "return table as"
<p>I'm working with SQL Server Express 2012 with advance services and Visual Studio 2013 update 2. I have simplified the example to the core. I have the following table in my database:</p> <pre><code>CREATE TABLE [dbo].[Realty] ( [Id] [int] IDENTITY(1,1) NOT NULL, ... ... [RankingBonus] [int] NOT NULL, [Ranking] AS (...
3
1,202
How to convert the values in an array to strings and send to php?
<p>I have a javascript file here.What it does is,when a user selects seats accordings to his preference in a theater layout,the selected seats are stored in an array named "seat".This code works fine until function where the selected seats are shown in a window alert.But from there onwards,the code doesn't seem to do a...
3
1,666
ListenerService Firebase not working with dates
<p>I've next model for my firebase entries for getting and fetching data:</p> <pre><code>struct MRecords: Hashable, Decodable { var text: String var date: Date var id: String init(text: String, date: Date, id: String) { self.text = text self.date = date self.id = id } init?(document: DocumentSnapshot) { ...
3
1,466
Angular- function call errors when called in one place, not in another
<p>I have an Angular application, and on one of the pages, I am displaying a table which is populated with information regarding various accounts. One of the columns is titled 'Contact', and displays a drop-down to allow the user to select the contact to be used for that account. The drop down is populated when the pag...
3
3,040
Why is Flex box stacking items from a grid
<p>I'm using <a href="https://masonry.desandro.com/" rel="nofollow noreferrer">masonry.js</a> to create a picture grid.</p> <p>My html is like this:</p> <pre><code>&lt;div class="new-starter-grid"&gt; &lt;div class="new-starter-grid-item"&gt;&lt;/div&gt; &lt;div class="new-starter-grid-item"&gt;&lt;/div&gt; ...
3
1,722
How to save the details of the account chosen in account chooser dialog box?
<p>Below code shows the Account chooser dialog box for the first time when i login to my app and then i choose an account from it .But whichever account i choose ,i want to show its details(<strong>email_id,user_name,user_profile pic</strong>) on the Navigation drawer header .How to show the details of the account?? .<...
3
2,234
How to perform raster scan of the curses screen to the file in python
<p>I am creating one call flow based on the content from one input file to the curses screen (window). I could successfully create the call flow to the curses screen. I would like to perform the raster scan of the curses screen and to write into the output file which i am giving. Could you please help in this regards....
3
5,451
Call R Shiny App with Argument
<p>Update, I tried writing app using object (explained <a href="https://github.com/jcheng5/seattle-meetup/blob/master/diamonds2/explore.R" rel="nofollow noreferrer">here</a>), but I get same error</p> <p>Updated internal app function</p> <pre><code>CustomPalette &lt;- function(new_pal=NULL){ if (interactive()){ ...
3
1,577
SQL AdvancedQuery
<p>I have the following data in a table called: dbo.DecodedCSVMessages_Staging </p> <p><strong>Here is a sample of the data:</strong></p> <pre><code>MMSI Message_ID Time Ship_Type Vessel_Name Latitude Longitude 2102930 3 2012-06-01 NULL NULL 56.528003 85.233443 2102930 ...
3
1,326
How to get two mysql querie results in one JSON array?
<p>in my current project I have to create a JSON array, in which for each day a status with a colour is displayed in a calendar (FullCalendar) and additionally a button with a link is to be displayed for all days where an event is planned.</p> <p>For this I have two SELECT's which both work on their own. I have already...
3
2,345
Shiny R- Why aren't formatStyle() changes visible in my output data table?
<p>I am trying to change the format and style of my output table in Shiny using formatStyle() but the changes are not visible. What might be wrong? For example, I want the &quot;Yes&quot; to be bold but the final results do not show these changes. This is my final output:</p> <p><a href="https://i.stack.imgur.com/RkIcy...
3
1,880
Fail to serve static files in deployed Django app (Docker, gunicorn, whitenoise, Heroku)
<p>I have built a Django REST API which serves JSON responses only. My problem is, in production (deployed on Heroku with debug=False) the app does not seem to serve relevant static files needed for the proper styling of the admin interface (only use case for static files). Note, in development (localhost with debug=Tr...
3
1,678
How to print value of list in Python (array[25,65], array[25,42], array[25,24]) to (25.65, 25.42, 25,24)
<p>We're working on a python program, where we have trouble sending data to our MySQL database. So far, we are selecting data from our database and we want to do something with the data in our python program and then send it back to our database. </p> <p>Unfortunately, we're having some challenges, which we hope you c...
3
1,127
ruby on rails app tutorial can't display micropost page
<p>Hi I'm following a rails tutorial and i've kind of veered off the tutorial to do some different things...&amp; i hit a snag. So the tutorial (michael hartl's) creates a feed of microposts, but it doesn't give each micropost its own page. This is what i'm trying to do and can't seem to get it working.</p> <p>So in...
3
2,139
Text is not being aligned with image and background positioning of List to be aligned on the right
<p>Following things in my html and css needs to be fixed.</p> <p>text be in the middle with respect to image and arroe to be placed on the right.</p> <p><a href="http://jsfiddle.net/9xKJm/1/" rel="nofollow">http://jsfiddle.net/9xKJm/1/</a></p> <p>html</p> <pre><code> &lt;div class="login-wrapper"&gt; &...
3
1,129
vba excel conditional formatting - invalid Procedure call or argument
<p>I have an Excel sheet in which I want to add an Conditional Formula by VBA. While I'm trying to do so, Excel is throwing &quot;Invalid procedure call or argument&quot; and I can't find why.</p> <p>The problem is with exactly this line:</p> <pre><code>Set cf = shG.Range(&quot;E&quot; &amp; (i - 3) &amp; &quot;:AI&quo...
3
1,741
How can I hide Delete button from recyclerview, when the file is not exist?
<p>Here is my recyclerView Adapter which shows a list from the database, View button is for downloading and the delete button deletes the file from device storage, it works perfectly. But how can I set Visibility of the delete button invisible/gone, if the file does not exist in the device storage.</p> <pre><code> ...
3
3,292
how to loop the ajax response?
<p>I am trying to learn AJAX way of coding and just started using jquery. I want to fetch the subcategory from mongodb database to the option tag as soon as the (parent )ie, select tag is clicked.</p> <p>Here i tried and got data but every data are in same option tag and i want them to be in different option tag. Here ...
3
1,283
How to fix a UITableView class which repeat twice elements read on Firebase database and in the load the table is empty?
<p>I'm trying to read from firebase realtime database a series of instructions.</p> <p>I have an unknown number of information on my Vehicles node, so I just use <code>nextObject</code> method to get the number of times that the function need to iterate.</p> <p>The problem is that at the opening, my table is empty. W...
3
3,361
Display goes to sleep after application starts on Android 4.1.x
<p>I've got application running on Android 4.0.4 successfully. However, if I run it on device with Android 4.1.x. it runs (by looking into the logs, I can see OnCreate starts), but displays goes black immediately. If I press power button, I can see aplication correctly running. Anybody experienced this? Please see the ...
3
2,786
Error while looping for strcmp
<p>I want to scan for a string and check if it can be found in a compiled struct and return some values of this. if not the relative message. I have the following code but I get errors.</p> <p>The error is at case 4. The rest of the cases 5 and 6 I am still fixing them.</p> <pre><code>#include &lt;stdio.h&gt; #includ...
3
6,412
Unreproducible string comparison, forces elsif failure
<p>In answering <a href="https://stackoverflow.com/questions/928563/code-golf-evaluating-mathematical-expressions">this code golf question</a>, I ran across a problem in my answer.</p> <p>I've been testing this and I cannot even get these two comparisons to work in the code, despite the fact that IRB has the right beh...
3
1,027
How to calculate with TextEditingControllers in flutter?
<p>So in flutter I have <strong>auto-calculated text fields</strong> and I want to calculate a result using a formula.</p> <p>Let me first show what I am doing:</p> <p><a href="https://i.stack.imgur.com/jy6Vl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jy6Vl.png" alt="enter image description here...
3
1,031
TypeError: Object of type 'Playlist' is not JSON serializable
<p><strong>user model:</strong></p> <pre><code>class User(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True, autoincrement=True) restaurant = db.Column(db.String(128)) username = db.Column(db.String(128), unique=True) email = db.Column(db.String(128), unique=True) ...
3
3,463
Got access_denied as error status while accessing protected resource using authenticated token in Spring Security OAuth 2.0 using Jdbc datastore
<p>The token can be generated but while the same token (which is not expired) is used to access protected resource then got <strong><em>access_denied</em></strong> as error message.</p> <hr/> <blockquote> <p>Below is the <strong>spring-security.xml</strong> file.</p> </blockquote> <pre><code>&lt;?xml version="1.0"...
3
5,831