title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Upload image in Webview crashes app
<p>Im trying to use webview to upload a image. My gallery gets displayed but when i click a image it crashes my app... then when i reopen my app it just gives me a white screen until i reupload my app on my phone again. Im confused and hit a roadblock on how to fix this.</p> <pre><code> web = (WebView) findViewById(R....
3
1,530
trouble with creating JTable to display data
<p>I am doing this payroll project for school. The idea is for the user to input the employee's name, work hour, hourly rate, and select department from the ComboBox. There will display 3 buttons, "Add More", "Display Result", and "exit". "Add More" button will store the input into several arryalist and set the textfie...
3
2,579
How to create an iterative loop of multiple Python functions?
<p>I'm trying to write a Python code that is a numerical solver for 1-d heat conduction (using FVM) with a temperature dependent thermal conductivity. </p> <p>The solver has three functions I need to iterate until convergence: </p> <p>Conductivity function: takes an initial guess for temperature field and outputs nod...
3
2,710
Appdomain not woking with .net 6?
<p>So I have been following the tutorial at <a href="https://docs.microsoft.com/en-us/previous-versions/dotnet/framework/code-access-security/how-to-run-partially-trusted-code-in-a-sandbox?redirectedfrom=MSDN" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/previous-versions/dotnet/framework/code-access-secu...
3
1,212
How to join more than 2 collections in mongodb?
<p>I have got 3 collections: groups, users, and members. Groups collection contains group specific details, users collection contains user-specific details and members collection contains the association of users with groups.</p> <p>For example:</p> <pre><code>Groups: id | name ...
3
1,398
notify() and wait() not working in Java
<p>I have 2 threads which I want to synchronize with wait() and notify(). However when I notify the thread which waits never resumes. This are my pieces of code. In Lib60870 i start both threads, and thread HandShake is synchronized with SerialReader.</p> <pre><code>public Lib60870(){ //Here I start threads try { ...
3
1,040
Why does my class not behave exactly like the overridden base class?
<p>My application has a <code>ComboBox</code> and had an application setting <code>myStrings</code> of the type <code>System.Collections.Specialized.StringCollection</code>. I bound the <code>ComboBox.ItemSource</code> to <code>Properties.Settings.Default.myStrings</code>. The ComboBox displayed the items of myStrings,...
3
1,045
Can not target div with CSS
<p>I am having a CSS newb problem. We are still using the old YUI2 which I am using to create sub-tables within a table as in this:</p> <p><a href="https://i.stack.imgur.com/BICOp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BICOp.png" alt="enter image description here"></a></p> <p>When the sub ...
3
2,080
/usr/xpg4/bin/grep -q [^0-9] does not always work as expected
<p>I have a Unix ksh script that has been in daily use for years (kicked off at night by the crontab). Recently one function in the script is behaving erratically as never happened before. I tried various ways to find out why, but have no success.</p> <p>The function validates an input string, which is supposed to be...
3
1,072
Angular 2 TD form cannot setValue or patchValue to span tag, button
<p>I have a simple angular template driven form with few inputs, span tags and button. I need to setValue to form from an object in my component.</p> <p>I'm unable to setValue to span and button tags and I get the below error.</p> <pre><code>core.js:1365 ERROR Error: Uncaught (in promise): Error: No value accessor fo...
3
2,206
Firebase Realtime database update
<p>Hello guys my firebase real-time database update function is updating all the data with new data, I'm attaching the image of the database before the update</p> <p><img src="https://i.stack.imgur.com/iYQFG.png" alt="1" /></p> <p>And after the update all the fields of A and B are changed into C, the source code is ava...
3
2,039
Fastest way to find a file that contains a string
<p>I was looking for the fastest way to find a file, from a given directory, that contains a text string.</p> <p>I've come across this question: <a href="https://stackoverflow.com/questions/37078978/the-fastest-way-to-find-a-string-inside-a-file">The fastest way to find a string inside a file</a></p> <p>Most of the a...
3
1,186
How to access PHP table element with same name
<p>I have this SQL query</p> <pre><code> $query="SELECT * FROM FLIGHTTABLE INNER JOIN AirplaneTable ON FLIGHTTABLE.AIRPLANEID = AirplaneTable.AIRPLANEID INNER JOIN AIRPORTTABLE from_airport ON FLIGHTTABLE.AIRPORTDEPARTURE = from_airport.AIRPORTID INNER JOIN AIRPORTTABLE to_airport ON FLIGHTTABLE.AIRPORTARRIV...
3
1,372
Unable to install pycontractions
<p>I am trying to install <strong>pycontractions</strong> either over Jupyter Lap or PyCharm but I get an error.</p> <p>Also tried to install packages individually but it failed.</p> <p>I am using an Anaconda3 environment with Python 3.8</p> <pre><code> command: 'c:\users\grue\anaconda3\python.exe' -u -c 'import io, ...
3
2,574
Django serializer does not throw error for flawed validated data
<p>I am running a django application and I have a simple class-based django-rest <code>CreateView</code>. My problem is that data actually gets created even though I sent flawed data. I am not entirely sure if that's expected behaviour, but I think it shouldn't be.</p> <p>View is simple:</p> <pre><code>class ModelCreat...
3
1,589
How to Know records updated with Update query?
<p>How to know whether any record in the table updated with the update query or not.</p> <p>I am using the Mysql C API..i have tried storing the mysql result after firing the UPDATE query but result is always returning NULL for successful upation also. Any help would be great.</p> <p>Thanks</p> <pre><code> int main(...
3
1,863
Why my list is empty when I am parsing correct json response?
<p>I am trying to print the ids from a JSON response. But I am not able to understand why I am getting a blank list. I have verified the JSONpath (SECTIONS_IDS_JSONPATH) from the online website and it is giving me correct results.</p> <pre><code>public static void main(String[] args) { String SECTIONS_IDS_JSONPATH ...
3
2,951
multiple image input training using dataset object
<p>How to use a dataset object as input in the <code>model.fit()</code> training loop, for a model with multiple inputs? Trying to pass the dataset itself gives me the following error:</p> <pre><code>Failed to find data adapter that can handle input: (&lt;class 'list'&gt; containing values of types {&quot;&lt;class 'te...
3
1,179
How to save in database value with vue js?
<p>This calendar is made with vuejs.</p> <p><a href="https://i.stack.imgur.com/UpMxZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UpMxZ.png" alt="calendar" /></a></p> <p>But the problem I have, After selecting the date, it does not store any value in the database.</p> <p>I want to store a vuejs co...
3
1,562
Navigation stack error while using EKF_localizatio_node with Turtlebot2
<p>I am using Turtlebot2 on Noetic, my navigation stack works fine when I use AMCL or fake localization as the localizer. However, due to the need of my research, I want to use EKF_localization_node as the localizer which means that my tf [map] -&gt; [odom] is published by EKF_localizatio_node.</p> <p>While using EKF_l...
3
1,115
Switching from "if" to "elseif" breaks code
<p>I'm using multiple if statements to check a containing div, and output an image based on the container name. The code was working fine until I add a final "else" or change the if's out to elseif and I can't figure out why that's happening. When I try to add the else or elseif, the entire page fails to load. Any idea...
3
1,139
Libreswan Route-based VPN
<p>I'm trying to configure IPSEC tunnel between two virtual machines (R2 R3) in the same network where one of them would work as a router (R2) so I can send data from third virtual machine (R1) over the IPSEC tunnel to R3.</p> <p>I have made the following topology:</p> <p><a href="https://i.stack.imgur.com/ZsJc1.png" r...
3
1,089
Python - webscraping to go several depth-levels within a page with requests module
<p>I have a Python3 script that is performing web scraping based on the urls provided in a csv file. I am trying to achieve the following:</p> <p>1.) Get a page from the URL provided in the CSV file</p> <p>2.) Scrape it and search for email addresses with regex + beautifulsoup, then, if email is found, save it to a res...
3
1,976
How to find probability of subsequences obtained from sequences in the given dataset?
<p>I have a dataset(CSV file) of sequence of links with their order placed status for each sequence. I have got the subsequences with their count with the help of prefixSpan algorithm(as described <a href="https://github.com/sequenceanalysis/sequenceanalysis.github.io/blob/master/notebooks/part2.ipynb" rel="nofollow no...
3
1,317
Adapting a Win8 store app tutorial to WPF
<p>I'm following <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=m-EqckhJNvI" rel="nofollow">this tutorial</a> that explains how to create a Dial in Visual Studio with XAML/C#. The problem is that the tutorial is targeted for windows 8 store apps.</p> <p>Knowing that, I still tried to use this tuto...
3
1,432
understanding "slice" in console in Jquery/javascript
<p>i am deconstructing a carasoul plugin called Unslider.js , and i have a difficulty understanding a little peice of code , so here i am on stack overflow . </p> <p>My difficulty is understanding the below line : </p> <pre><code>target = li.eq(index); </code></pre> <p>lets analyse that , </p> <p><strong>target</st...
3
1,241
basic rails model has_many and belongs_to with group by date
<p>I'm a rails newbie so pardon if this is a basic question. I'm setting up some models and the relationships should be pretty basic, but I'm a little stuck in the best way to set everything up.</p> <p>I'm trying to display a list of seminars that have different times. Here are my two tables:</p> <pre><code>create_ta...
3
1,695
Sometime Postgresql Query takes to much time to load Data
<p>I am using PostgreSQL 13.4 and has intermediate level experience with PostgreSQL.</p> <p>I have a table which stores reading from a device for each customer. For each customer we receive around ~3,000 data in a day and we store them in to our <code>usage_data</code> table as below</p> <p><a href="https://i.stack.img...
3
1,169
failed to connect to all addresses exception when trying to connect GRPC server from a winforms app
<p>Hello grpc newbie here,</p> <p>I've a winforms application that I want to connect to a grpc server.</p> <p>I have no problem running the grpc server on localhost and make a connection to it with the winforms app.</p> <p>I've deployed my grpc server to a temporary url : <a href="http://mujf94-001-site1.gtempurl.com/"...
3
1,037
How do I get rid of the \t within this python regex match object?
<p>The data is derived from this page: <a href="https://simple.wikipedia.org/wiki/List_of_U.S._states_by_population" rel="nofollow noreferrer">https://simple.wikipedia.org/wiki/List_of_U.S._states_by_population</a></p> <pre><code>text = ''' 1 1 California 39,512,223 37,254,523 6.1% +2,257,700 53 718,404 7...
3
4,100
Sequelize - ForeignKey relationship - problem with alias
<p>I have two tables. One is skills, another is ratings. My problem is specific to ratings: The model of ratings is:</p> <pre><code>var sequelize = require('../sequelizeConfig'); var Sequelize = require('sequelize'); var Ratings=sequelize.define('ratings',{ ratingID:{ type:Sequelize.BIGINT, field:'rating_...
3
1,261
Android studio layout become blank when i enter text into multiline text
<p><a href="https://i.stack.imgur.com/C0lSj.jpg" rel="nofollow noreferrer">Image 1-Before entering text</a></p> <p>In this edit text view i if i enter a single word it becomes like this</p> <p><a href="https://i.stack.imgur.com/okMkb.jpg" rel="nofollow noreferrer">Image 2-after entering text</a></p> <p>XMl </p> <pr...
3
1,290
stopping threads that run indefinitely
<p>I have been trying to implement the producer consumer pattern. If both producer and consumer are running indefinitely how should one try to stop them?</p> <p>I have been trying to test the status of <code>isInterrupted()</code> but the following code does not guarantee all threads to stop. </p> <pre><code>public c...
3
1,636
Django form won't display
<p>I'm working on a project and we need to add a form to add an event. It lists the name, date, time, and address. I got the form to work but when I added the base, the form doesn't show up on the web page with the base loaded. I'm thinking it has something to do with my html file. Here is my html file.</p> <pre><code...
3
1,918
how to increment to the next variable?
<p>I am writing a program that takes in a CSV file and makes a table out of the content from it. Then I apply a filter that will eliminate the bad entries in it, and I want to store those into a different ArrayList using the .add(originalTable()) </p> <p>The problem I am having is I want to apply different filters and...
3
1,077
Scrollview under the header
<p>Is there a way to do this in android studio? I want to achieve that when you scroll down the header will overlap above and under is the scrollview part. What I've got is it scrolls over the header. <a href="https://i.stack.imgur.com/LhwQ0.png" rel="nofollow noreferrer">In android studio</a></p> <p>This is what Im tr...
3
3,326
Setup a Kibana dashboard for data about last Jenkins build
<p>I use Kibana to show data about automated test cases stored in a single elastic search index.</p> <p>These tests can be repeated multiple times during the day and right now are identified by a build number that comes from Jenkins. So, if I want to see the latest results, I need to add a filter in my dashboards where...
3
1,549
how to assign the output of a string separated by column to a variable in PowerShell
<p>I am trying to write a PowerShell script to get the required contents from a log/text file. The file looks like below:</p> <pre><code>node1 : data1 node2 : data2 Administrators : Data is Not Available at this moment desiredouput : data3 format : format-type node1 : data4 node2 : data5 Administrators : user1, user2, ...
3
1,032
Optaplanner unable to add nearbySelection to subChainSelector
<p>My question is essentially the same as <a href="https://stackoverflow.com/questions/54719539/nearby-selection-with-subchainchangemoveselector-or-subchainswapmoveselector">Nearby selection with subChainChangeMoveSelector or subChainSwapMoveSelector</a></p> <p>I am unable to configure a <code>&lt;nearbySelection&gt;<...
3
1,352
Unable to connect error - Node Express app on Linux server
<p>I receive an 'Unable to Connect' error in my browser when trying to connect to my Node Express application. At (my servers ip address) 1.1.1.1:5000. The application works fine in my development environment but not on my AWS EC2 Linux server.</p> <ul> <li>The Node Express app works on my computer in dev</li> <li>Por...
3
2,029
How to fix this 2 issue by php (edit user from admin)?
<p>Currently: user can be changed through admin and a problem comes if I empty the pass form... a new hashed pass is saved in the database and the user can no longer login with the old pass... where as pass form was blank.</p> <p>So I need to fix these two issues....</p> <p>How do I do that ? </p> <p>1) Username can...
3
1,743
Refreshing a div in Modal
<p>I am having a modal with two div user can add items by clicking on the button on the first div but as the user select that item i want to show the selected item in the second div. I am able to insert the selected item in database but i am unable to refresh the second div. So that user can see what item he has select...
3
1,372
How could I evenly split up buttons on a single line using HTML and CSS?
<p>In my HTML code I am trying to create a couple buttons inside a modal. I am using Bootstrap for this. Within the footer part, I am trying to split these buttons evenly among the width of the modal (or modal footer).</p> <p>I could be using Bootstrap columns to achieve this but the padding (between the elements cont...
3
1,382
Right sidebar moves when zooming in and out
<p>This is not a problem when I zoom out smaller than the original size, but when I zoom in, it covers my content. This also happens on screens of any other size than my own. My screen resolution is 1366x768. This is my website: <a href="http://justiceroulette.com/" rel="nofollow noreferrer">http://justiceroulette.c...
3
1,412
ValueError: Cannot feed value of shape (40, 244, 244) for Tensor 'Placeholder_4:0', which has shape '(40, 224, 224, 3)'
<p>I am new to TensorFlow and machine learning. I'm trying to extract features of images. I extracted the features of 1 image successfully but I can't extract images[] Here's the script:</p> <pre><code>#read image def readfile(pathdir): paths = glob.glob(pathdir + "*.png") img_data_list=[] imgs = [cv2.imread(file,cv2....
3
1,270
Parse a very large text file with Python?
<p>So, the file has about 57,000 book titles, author names and a ETEXT No. I am trying to parse the file to only get the ETEXT NOs</p> <p>The File is like this:</p> <pre><code>TITLE and AUTHOR ETEXT NO. Aspects of plant life; with special reference to the British f...
3
1,960
WPF - Xceed GridControl - saving when edited row has focus
<p>I have an XCeed grid with cell editing enabled. When i make a change to my cell, leave the row and then save it is persited to the database.</p> <p>But when i hit my save button when the changed cell is still selected the change doens't get persisted. </p> <p>How can i make sure when i save the current content is ...
3
1,035
Need to turn javascript (ajax) vote script into reusable (dynamic) script so it can be used over and over
<p>Need to turn javascript (ajax) vote script into reusable (dynamic) script so it can be used over and over.</p> <p>I have some ajax that works great, but I have to reproduce it and add unique identifiers [where you see 9 in the code are the unique identifiers that I have to change] for every question added that need...
3
2,195
JavaScript checking the background color of a div
<p>I have a simple program where you can select a color and fill a box with it. I have a 4x4 grid of boxes(divs) and I want to check if the backgroundColor of all the divs(boxes) has a value, so that when all the boxes are filled with a color the grid resets and all the boxes are blank again. </p> <p>However, I am hav...
3
1,513
Why the hashset's performance is way faster than list?
<p>This problem is from leetcode (<a href="https://leetcode.com/problems/word-ladder/" rel="nofollow noreferrer">https://leetcode.com/problems/word-ladder/</a>)!</p> <p>Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, ...
3
1,682
Pass js var through query string
<p>I need to pass a js variable through out all pages where at the end of navigation, i need to summarize the total from all page and display the value. Here is my JS code:</p> <pre><code> &lt;script&gt; $(document).ready(function() { $('input[name=q1]').click(function() { var selectedValue = $(this)....
3
1,134
Using FormFactory in Play 2.5.18 causes InvocationTargetException error
<p>I am upgrading the Form objects in Play 2.5.18 to use the FormFactory object as listed here:</p> <p><a href="https://www.playframework.com/documentation/2.5.18/JavaForms" rel="nofollow noreferrer">https://www.playframework.com/documentation/2.5.18/JavaForms</a></p> <p>I have my controller looking like this:</p> <...
3
2,222
One form is working while other form is not working in laravel 5.4
<p>I've UserController in which I've two options - </p> <p>1) For Updating Profile</p> <p>2) For Updating Password</p> <pre><code>namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Input; use App\User; use Auth; use Hash; class UserController extends Controller { public...
3
4,639
Sharded mongodb won't redistribute data
<p>I've setup a sharded mongo db environment on localhost, with 3 config servers and 2 sharded mongo instances and a single mongos.</p> <p>Once the cluster has started up, I run the following sequence of commands:</p> <pre><code>sh.addShard( "127.0.0.1:27010") sh.addShard( "127.0.0.1:27011") a = {"_id" : 1, "value" ...
3
1,529
Moving Spring Web Project using LDAP Authentication and Authorities to Spring and CAS
<p>I am trying to move a Spring Web Project using LDAP for Authentication and Authorities to Spring and CAS. My project was working great using LDAP but now I have to use CAS.. Once I changed the XML file everything stopped.</p> <p>XML using LDAP:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans:...
3
7,252
PHP - moving forwards and backwards through mysql rows
<p>I have a page that displays a row depending on the id given in the browser bar (page.php?id=1). I am trying to use forward and back buttons to display the corresponding next or previous row on the page. So essentially the prev and next buttons will just be links to page.php, with the id being the next in the list. I...
3
1,855
How to submit image along with fields to node js
<p>I am trying to send form with multiple images so that i can save to mysql data base my form is like</p> <pre><code>import React from 'react'; import axios from 'axios' export const Imageupload = ()=&gt; { const[File,setImageFiles] = React.useState(null) const[firstName,setFirstName] = React.useState(null) ...
3
1,288
Remove existing product and install it again.guide me with example code
<p>I want to add feature if setup run second time it will remove existing product first. without version feature. kindly guide me how i make sure if product already exist. setup will remove it first and install it again and after installation launch application. OR if product with same version already exist setup launc...
3
6,616
Adding search and time stamp filter to Elastic Search Nest client
<p>I want to search and filter data using c# Nest client Below is the query written using Javascript-Elastic search and similar client i am trying to write in c# but its not working as expected</p> <p>Javascript Elastic Search client :</p> <pre><code> var from_ms = from.getTime(); var to_ms = to.getTime(); ...
3
1,061
Multiple connected/dependent sliders with Dojo
<p>I am trying to create some sliders, which are interconnected. All sliders should always give a sum of 100. So, if Slider 1 = 50, Slider 2 and 3 should be set to 25 automatically.</p> <p>The code works so far with some limitations: I cannot manipulate the sliders live (intermediateChange: true) and the sliders do no...
3
1,149
Passportjs Google OAuth does not return profile object
<p>I am working on a MERN stack appliaction and I wanna integrate google authencation using PassportJs, I already configured the server-side and ran a couple of test which were successful but all of a sudden it no longers returns the usual profile object which contains the user's name, first_name, _json e.t.c, instead ...
3
2,601
Using pmax/pmin with vector of variable string names in R
<p>Is there a way to use pmax and pmin function in R with a vector of string variable names using the tidyverse (dplyr) format?</p> <p>For instance, I want to run the following:</p> <pre><code>data(mtcars) mtcars %&gt;% mutate(maxval = pmax(drat, wt, na.rm = T) </code></pre> <p>This properly gets me the following:</p> ...
3
1,324
UIImage Upside Down When Reconverted From String Stored in SQLite
<p>I save an image from the simulator photo library.</p> <p><a href="https://i.stack.imgur.com/gYibC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gYibC.png" alt="Original image from stock photo library" /></a></p> <p>I then save the image as a string and when the user clicks Save, it is reconverte...
3
3,057
Hot track doesn't work in a virtual TListView while dragging
<p>If I take a virtual <code>TListView</code> and try to drag items (<code>Accept:= True</code> always) the "hot tracking" system looks corrupted. In win 7 the hot item remains near the selected item, while in win 8.1 it remains fixed at random positions. I recorded this behavior to better understand what I mean:</p> ...
3
1,231
Accessing JSON values in JQUERY/AJAX based on condition
<p>Please be patient because I know this question might have been answered but I have not been able to find it. I have been working on a project &amp; lately I just started using AJAX.</p> <p>My JSON is coming from PHP, which includes errors and success, now the issue is how do I access success(if the registrattion is...
3
2,444
error is coming in this line os.path.exists()
<p>i am getting an error like below when I am trying to search the server after adding the server .</p> <p>Linux server </p> <pre><code>while(h): ch= raw_input("""#################################### 1.Search 2.Add 3.Edit 5.Exit #################################### """) print(ch) if "1" in ch:...
3
2,685
Wordpress post categories Ajax URL structure
<p>I have a basic wordpress blog that has categories and when the categories are clicked the posts filter. This works great but I ideally want when the category is clicked the URL to change to</p> <pre><code>http://site.preview/resources/CATEGORYNAME </code></pre> <p>currently the blog loads as <code>http://site.prev...
3
3,674
.sliderImage object has no method apply
<p>i am using jquery 1.7.2 in my image slider code and i am getting following error in my console,i dont understand why ???</p> <p><strong>HTML code:</strong></p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;iSlider&lt;/title&...
3
2,550
Why android Facebook integration crash?
<p>I am trying to integrate Android application with facebook. I am following these tutorials: <a href="https://developers.facebook.com/docs/android/getting-started" rel="nofollow">https://developers.facebook.com/docs/android/getting-started</a></p> <p><a href="http://code.tutsplus.com/tutorials/quick-tip-add-facebook...
3
4,233
File Lock Exception
<p>I am using neo4j grails plugin for embedded mode. I am getting file lock exception.i make sure,no other process is using this file. i have tried to give super user permission to file use chmod but it didn't work. so how can i resolve it</p> <p>Exception stack follows -></p> <h2>Caused by OverlappingFileLockExcepti...
3
3,058
PostgreSQL complex summation query
<p>I have the following tables:</p> <pre><code>video (id, name) keyframe (id, name, video_id) /*video_id has fk on video.id*/ detector (id, concepts) score (detector_id, keyframe_id, score) /*detector_id has fk on detector .id and keyframe_id has fk on keyframe.id*/ </code></pre> <p>In essence, a video has multip...
3
3,330
Custom plugin for librdkafka registering oauthbearer_token_refresh_cb not being called
<p>I'm trying to write custom plugin for <code>librdkafka</code> which will provide custom implementation of <code>oauthbearer_token_refresh_cb</code>.</p> <p>In our company we use kafka with custom OAUTHBEARER sasl mechanism, which is working fine in java/kotlin, also work fine in .Net. Next step is to implement same ...
3
3,770
How many months someone was there in that year in Pandas?
<p>We consider this dataframe which represents contracts of workers. I would like to list how many months a worker worked for a certain year.</p> <pre><code>df = pd.DataFrame{'id': {0: 19019, 1: 17160, 2: 21593, 3: 3146, 4: 21593, 5: 3146, 6: 22737, 7: 25311, 8: 25740, 9: 3289, 10: 26312, 11: 28028, 12: 17017, 13: ...
3
1,545
VS2019 not properly importing Qt Designer project
<p>I have looked everywhere for a solution to this, but I cannot find one. In VS2019, I have the Qt tools extension installed, and I have exported the C++ header file from Qt Designer including my project. I then created a .pro file including:</p> <pre><code>QT += widgets QT += uitools HEADERS += ui_xinterface.h FORMS...
3
1,218
Python recursive function not returning
<p>I am trying to write a recursive function that returns the position of a word in a sorted word list, or return <code>None</code> when the word is not found. The following is the code:</p> <pre><code>def partition(t,kw,upper,lower): if ((upper-lower) &gt; 1): pivot = lower + (upper-lower)//2 print...
3
1,573
Why when I modify a linked list inside a function am I getting a segmentation fault?
<p>I have written a helper function that was designed to add a node to a linked list. The location this was to be done with the following segment.</p> <pre><code>tcb_add(running,temp); </code></pre> <p>This segment is supposed to add temp to running. Here is my code for the function.</p> <pre><code>void tcb_add(tcb_t *...
3
1,722
How do i make center email content is visible
<p>I am trying to create HTML email page where there should be fixed header,center and footer. I am facing difficulty to see center content to make center content is visible i have added so much br tag after navbar div. how do avoid this. How do i reduce distance between support.html line to All rights reserved How do ...
3
5,255
clickListener not initializing correctly
<p>Sorry I am very new to Java and LibGDX however I'm having a problem.</p> <p>I have two buttons in my Pong game. If score1 or score2 equals 5, the game ends. This is done by making the ball and paddles move off screen then a method called drawButtonRematch and drawButtonMenu are initialized which draw the two button...
3
1,232
Place marker on map - GeoTools 25-SNAPSHOT - Java 11
<p>I am using geotools 25-SNAPSHOT in my application. I have displayed a map in my application (raster). Now I want to place a marker (image or simple colored dot) on a map at a specific latitude, longitude location without refresh.</p> <p>In the following code the marker is placed at mouse click but on <code>addLayer(...
3
2,094
Output of VGG Model becomes constant after training and Loss/Accuracy are not improving
<p>I'm trying to implement a slightly smaller version of VGG16 and train it from scratch on a dataset of about 6000 images (5400 for training and 600 for validation). I chose a batch size of 30 so that it can neatly fit within the dataset, otherwise I would get his with IncompatibleShape error during training.</p> <p>A...
3
7,647
The list in recyclerview is getting duplicated when navigating to other fragment with MVVM
<p>The list content in recyclerview is getting duplicated when navigating to other fragment and getting back to the fragment.</p> <p>When a user clicks on item and navigate back to the same fragment the recyclerview is getting duplicated</p> <p>ViewModel:</p> <pre><code> private var listMutableLiveData: MutableLiveD...
3
1,167
Is there a technical reason why it would be better for the COM DLL to delete the passed in temporary JSON when it is finished with it?
<h2>Context</h2> <ol> <li><p>My parent MFC project creates a JSON file:</p> <pre><code>CImportFromCLMExplorerDlg::CreateMSATranslationsJson(strTempJson); </code></pre> </li> <li><p>This temporary file is passed into a C# COM DLL as a parameter for it to use:</p> <pre><code>theApp.MSAToolsInterface().ImportHistoryFromCL...
3
2,484
nHibernate disables my log4net logs
<p>So, we had a little ETL app that had some issues with updates. Which were nicely solved in an afternoon sprint with nHibernate. But this app relied upon log4net to push logging output to a few different destinations based upon command line switches. Once we got nHibernate wrapped into the app, it ETL'd flawlessly. B...
3
1,107
SVG fill animation returns to initial state
<p>I'm using keyframes to change SVG path fill from visible to none-visible.</p> <p>It working, but when animation ends the path return to his initial color (black), and I want it to remain white.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-...
3
1,782
Remove selected item from a DropDownList always removes the item on top
<p>I have two asp.net pages and the <code>summary.aspx</code> will be called from the first asp.net page by using <code>Response.Redirect("summary.aspx")</code>. </p> <p>Ticket is a custom class with 4 attributes (<code>String name, int age, int seat, int price</code>), their getter and setters and a <code>ToString</c...
3
1,172
Brainfuck interpreter problems
<p>I'm new to C. Currently I'm trying to write a Brainfuck interpreter. I have tried this so far.</p> <pre><code>#include &lt;unistd.h&gt; #include &lt;stdlib.h&gt; char *line; int curr_pos; void interprete(char *coms) { int a; int curr_loop; a = -1; curr_loop = 0; while (line[++a]) ...
3
1,394
Angular 2 submit JSON within JSON
<p>I am trying to use an import function where a user can import raw JSON and then it posts to the server.</p> <p>for example if a user pastes this json:</p> <pre><code>{ "name": "testing", "design": [ { "name": "test", "comments": [ { "short": "123", "long": "123456789...
3
1,221
error defining operator == and operator > using binary search tree
<p>i am working on a program that reads in a text file that the user inputs, creates a text file that the user inputs, names the text file that the user wants, and then sorts the text file sorting words above the user entered in threshold and displays the words and how many times it was found to the output file the use...
3
2,357
How can I get a dynamic display of my jTable content
<p>I would like to display my jTable dynamically in function of my jComboBox selected item.</p> <p>By default, my jTable is completed by an ArrayList (completed with a database SELECT) and there is no problem.</p> <p>But when I switch my jComoboBox selection to &quot;Tour 2&quot;, I would like my jTable to be updated w...
3
2,367
Convert an Array To a Nested JSON
<p>I am struggling the last days with an unresolved problem for me. I am stuck on this problem for long time that's why I took the decision to ask for your help.</p> <p>I'm reading an Excel file and got the following array which I am now trying to convert it to a nested JSON to get accepted from the mongoDB but unfort...
3
1,963
Android broadcast gps turned on update location
<p>Well even having a lot of reading here, i can't figure out the issue. It looks like i never get gps turned on event.</p> <p>After some checking in debug, the flag isGps is correct. But as a result, user alert works nice but not update location. I just want to add a marker when gps is turned on and it looks like som...
3
1,883
Mongoose-MongoDb : doc.pull inconsistent when multiple pull
<p>node v7.7.1 mongodb: 2.2.33, mongoose: 4.13.7</p> <p>Hello all,</p> <p>i'm having this unexpected behaviour when trying to update a document with multiple pull request based on matching criterias. here is what i mean</p> <p>my document schma looks like this</p> <pre><code>{ "_id": "5a1c0c37d1c8b6323860dfd0",...
3
1,776
How to avoid fetching double data from sqlite in a spinner?
<p>I'm trying to fetch data from sqlite to set them into a spinner. The user creates rows of travel dates and set them into the database (COLUMN_DATE_DEPART). In the first spinner I'd like to get the list of the years existing in the COLUMN_DATE_DEPART. In the second one, I'd like to get the list of months of the year ...
3
2,014
When I run SQL query from RIDE it gives error
<p>I am having this problem,</p> <p>When I send an SQL query as an argument it gives error when I use the same query directly in my java program it works fine.</p> <p>MY SQL query when I send as an argument is as follow</p> <pre><code>Select RATINGPERIOD from INVESTMENT.I1INVE Where INVESTMENTID = 100 rs = stmt.exe...
3
1,204
Benchmarktools' belapsed not working on symbol
<h1>Introduction</h1> <hr> <p>I have a directory with the following structure</p> <pre><code>--&gt; Report --&gt; Problems --&gt; PE_001 --&gt; Julia PE_001.naive.jl PE_001.jl --&gt; Benchmarks test_001.txt test_002.txt --&gt; Results --...
3
2,178
dplyr: comparing values within a variable dependent on another variable
<p>How can I compare values within a variable dependent on another variable with dplyr?</p> <p>The df is based on choice data (long format) from a survey. It has one variable that indicates a participants <em>id</em>, another that indicates the choice <em>inst</em>ance and one that indicates which <em>alt</em>ernative...
3
1,161
Firebase: Attempting to populate an ArrayList with addListenerForSingleValueEvents, it only adds one child
<pre><code>DatabaseReference ref = mFirebaseDatabaseReference.child("questions"); ref.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { String dQuestion; ArrayList&lt;Question&gt; alQ...
3
1,948
DIV Row & HRs Extend Beyond Container (Bootstrap)
<p>Hey I have a DIV and a HR pushing out of their Container. I've tried several different fixes, but nothing seems to work. I've placed everything in a Fiddle so you can take a look at what I'm talking about. Any help would be appreciated.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snipp...
3
1,732
Spectogram of a .wav file returns wrong results
<p>I am currently trying to plot the frequency domain of a .wav file which then i can use the values of, to train a neural network to predict which sound is playing.</p> <p>I already read the bytes of the .wav file using this bit of code, starting from the 44th byte , which is the start of the data chunk:</p> <pre><cod...
3
1,570
Glue does not work from the Docker Container
<p>I am trying to run a simple Glue Job that takes the content from AWS S3 and dumps it into AWS Aurora Postgresql. While the job runs fine from the AWS Console, it just refuses to work while trying to run it out of a Docker Container on an EC2 instance. I have unchecked the &quot;Require SSL&quot; option while creatin...
3
1,319