title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Azure Web Deployment Fails - Website with given name already exists
<p>When deploying my application I receive the following error: <strong>Website with given name azuredemo already exists</strong>.</p> <p>I am attempting to deploy a Java Spring Boot web application to Azure. I created a Spring Boot application that works on my local machine against port 80.</p> <p>I then ran <code>m...
2
4,762
Hibernate EJB IllegalArgument
<p>I have this mysterious hibernate ql exception. It involves three classes:</p> <pre><code>package com.systemspecs.Entity; import java.io.Serializable; import java.util.Date; import javax.persistence.*; /** * * @ * @author-Admin */ @Entity @Table(name = "echequeupload") @DiscriminatorColumn(name = "TYPE", discr...
2
5,877
making DFS code from BFS
<p>Hi I write a program for solving 9 problem by bfs which is attached bellow. I want to change this code in order to make it use of dfs. in my bfs I used an array and 2 pointers to simulate queue and putting successor at the end of queue each time. I don't know what should I do to change it to DFS. what should I do?</...
2
1,841
Xpath1.0 local-name() versus namespace in XSLT
<p>For some reason, when I am using proper XPath without <code>local-name()</code>, I am not getting any value.</p> <p>Non-working XPaths I have tried:</p> <ol> <li><code>//mon:ReturnUpdateRequest/urn:Header/urn:DocumentIdentifier/text()</code></li> <li><code>soapenv:Envelope/soapenv:Body/mon:ReturnUpdateRequest/urn:...
2
1,976
Laravel csrf token mismatch for axios post request
<p>I am have been very desperate for these few days because I seem can't overcome this one simple problem.</p> <p>I can not authenticate my SPA (react via Axios) powered by Sanctum Laravel</p> <p>I have read the documentation and read man tutorials and questions. Some problems have I overcome.</p> <p>Eventually, I stuc...
3
2,579
Evaluation of ResNet50 returns numpy array of only zeroes for binary classification
<p>I'm trying to implement ResNet50 on ImageNet pre-trained weights. Below is the full code:</p> <pre><code>from tensorflow import keras from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense from tensorflow.keras import optimizers from tensorflow.keras.preprocessing.image import ImageDataG...
3
2,199
Azure Data Studio does not recognize Kerberos Ticket in MacOS Monterey
<p>I am attempting to connect to a Microsoft SQL Server database on a corporate network that is limited to Windows Authentication. I have configured Kerberos and Kerberos does successfully issue a ticket and I can verify that the ticket is valid in Ticket Viewer. But when I attempt to connect in Azure Data Studio, and ...
3
1,319
selected options from radio and checkbox are not passing data
<p>I am trying to make a set of questions through multiple pages, so I need the selected answer from page 1 and page 2 to be passed to page 3 because page 3 is like the confirmation page which will show all the selected answer from the past 2 pages.</p> <p>The interface is successfully shown, well, easy but it seems l...
3
2,954
Jquery Autocomplete source within same file
<p>I'm trying to implement this script within Wordpress (<a href="http://af-design.com/blog/2010/05/12/using-jquery-uis-autocomplete-to-populate-a-form/" rel="nofollow">http://af-design.com/blog/2010/05/12/using-jquery-uis-autocomplete-to-populate-a-form/</a>) getting the Array from Wordpress database. The issue is tha...
3
1,199
update of TensorFloed led to malfunction of callback,
<p>The following codes contain an LSTM model with a callback that stops the training once the training set accuracy reached 90%.</p> <p>It was working fine when I used tensorflow-gpu=1.14.</p> <pre><code> import tensorflow as tf from tensorflow.keras.layers import Dense, Dropout,Bidirectional,Masking,LSTM from keras_se...
3
1,491
WidgetKit Timeline doesn't update entries
<p>I'm working on a timer-based app, and trying to build a widget that displays several timers at once.</p> <p><em>It should look something like this</em></p> <p><a href="https://i.stack.imgur.com/K3sZu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K3sZu.png" alt="" /></a></p> <p>So, in order to ac...
3
1,245
Submitting item within a form
<p>[Edited 10/01/18 to give more background on the code. This version present the complete code used] </p> <p>I am struggling a bit with a form submitting using AngleSharp.</p> <p>I use AngleSharp to Scrap this website for <a href="http://www.gatherproxy.com/proxylist/anonymity/?t=Elite" rel="nofollow noreferrer">Pro...
3
1,438
Xamarin binding of Android library(AAR)
<p>I want to use <a href="https://www.dsphotoeditor.com/" rel="nofollow noreferrer">https://www.dsphotoeditor.com/</a> library in xamarin Android. For that I have created a binding project. I know how to create binding, I have already do it for sinch library. But for <a href="https://www.dsphotoeditor.com/" rel="nofoll...
3
1,572
How to update_batch or just update all rows in my table
<p>my table updates all the rows, using only the last row data not the data in each rows.</p> <p>this is my model</p> <pre><code>public function update3($dtr_id) { // $lateDdc_total_rate = $_POST['lateDdc_total_rate']; if (is_array($dtr_id)) { $this-&gt;db-&gt;where_in('dt...
3
1,028
can't read data from database in asp.net using vb
<p>i am learning asp.net using vb,i am working on college assignment i have to read data from msaccess and show record in label basically i am doing 'search' operation</p> <p>here is the code</p> <p>Public Class WebForm2 Inherits System.Web.UI.Page Dim connection As New OleDb.OleDbConnection Dim sname, l...
3
1,257
Got promise not working
<p>I'm trying to use promise to get in promise2</p> <p>But if I have an object Widgets with several elements in it...</p> <p>Why can't I have been able to get my console.log's output </p> <pre><code>Parse.Cloud.define("extract", function(request, response) { var user = request.params.user; var promise = Pars...
3
2,980
Multiple processes in method executed asynchronously from calling thread
<p>Suppose I have multiple (say, two) processes that I want to run sequentially but asynchronously, how do I go about doing this? See snippet below: </p> <pre><code>public virtual Task&lt;bool&gt; ExecuteAsync() { var tcs = new TaskCompletionSource&lt;bool&gt;(); string exe1 = Spec.GetExecutablePath1(); st...
3
1,517
NullPointerException when attempting to save webcam image from Java Applet
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/12571290/nullpointerexception-when-try-to-capture-imagem-from-webcam">NullPointerException when try to capture imagem from webcam</a> </p> </blockquote> <p>I saw this good <a href="http://webcamapplet.sourcefor...
3
2,591
Permission called twice when we have mutableStateOf in Jetpack compose
<p>I have following permission check in Jetpack Compose :</p> <pre><code>val launcher = rememberLauncherForActivityResult( ActivityResultContracts.RequestMultiplePermissions() ) { permissions -&gt; if (permissions.values.first { true }) { log.info(&quot;Permission is granted&quot;) shouldDisplay...
3
1,516
Java desktop client nodejs server using socketio, socket not connected
<p>So i have a javafx application , who i use for CRUD of client, on mode &quot;connected&quot; i need to send data on the server, offline , i register the data in a JSONfile</p> <p>When i use the controller ClientSocket (there is the run button that you can press), it shows that socket is connected , but when i launch...
3
2,160
How do i get values from 1 def to an other inside the same class?
<p>I am making an object detection app from my last year in highschool I am having some troubles. I am looking for a way to use the string username from the def verify in another def like Change. I already tried to make it a global and sending the username from my kV file strait to the change def but none of them worke...
3
3,243
read/write process memory when sudo has no permission to do so
<p>I have a short python script, which is reading memory of other process. When I am going through the maps, I can see that some pieces of the memory don't give me read/write permissions. That is true even when I run the script with sudo. Is there any way to get these permissions? I am using newest Ubuntu and code in p...
3
1,531
Using the string .replace() function to update lines in a text file
<p>I'm attempting to read a text file and then if the substring doesn't match up with expected value, I want to replace that substring with a curated value. My current code is above along with a sample .txt file.</p> <pre><code>def update_atom_count(self, input_file): count = 0 readFile = open(input_file, 'rt'...
3
1,176
Login form not redirecting after login
<p>I have a login form but when it logins successfuly it doesn't redirect to the page i want. I want it to redirect to a html page i got name PF1.1.html but in the example i give the address to google but it still doesn't work. The javascript is working all of it except the redirect part and i don't know why i trie to ...
3
4,965
On click get ajax request 4 times
<p>Get issues when i click one time i got 4 request on console. like this. <a href="https://i.stack.imgur.com/8w9Qp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8w9Qp.jpg" alt="enter image description here"></a></p> <p>here is my code</p> <pre><code>var opener = listTreck.find('.row-holder'); o...
3
1,153
Altering twitter4j to search
<p>I am currently creating code that should search through tweets based on keywords. i originally created a streamer using the twitter4j API, only to find out that you cant filter multiple filters. my code for this is listed below.</p> <pre><code>public class TweetStreamer { public static void stream(String[] apiKey...
3
1,343
Form is submitting but not sending data via POST
<p>It may seem to duplicate as <a href="https://stackoverflow.com/questions/19887112/simple-form-not-sending-data-via-post">this</a> but it is not. And <a href="https://stackoverflow.com/questions/21778790/form-is-submit-but-values-are-not-passing">this</a> is also not my case for the same reason.</p> <hr> <p>Here is...
3
2,577
All UITableCells rendered at once... why?
<p>I'm extremely confused by the proper behavior of UITableView cell rendering. Here's the situation:</p> <p>I have a list of 250 items that are loading into a table view, each with an image. To optimize the image download, I followed along with Apple's LazyTableImages sample code... pretty much following it exactly. ...
3
1,449
Cannot read property 'stock' of undefined
<p>I am making an Angular app where I want to update the value of stock-based on the input that the user enters.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>// app.componen...
3
2,041
Lines appear after scaling up content
<p>I'm learning CSS and HTML at the moment and I'm having a hard time understanding why lines appear when I hover over the content. Please, understand that I am just starting to learn and my code is probably unorganised and not as clean as it should be. This is actually my first try doing something alone. Any advice wo...
3
3,257
Change the state of particular component individually in flatlist as in facebook like btns
<p>I've a lists of like icons in a flatlist. I want to change the color if the particular icon is clicked. But if I use likeStatus state to do it and click any icon, then the color of all the icons will change. How can I treat individual icon separately in flatlist using state? I've tried a lot but in vain. Any help is...
3
1,224
Python PyInstaller - Failed to execute script Error
<p>I have a code, which i want to pack as an EXE. The package packs completely, but whenever i run it, it says</p> <blockquote> <p>Failed to execute script</p> </blockquote> <p>My code:</p> <pre><code>from tkinter import * import tkinter.messagebox as tmsg import string import random root = Tk() def helpf(): tmsg...
3
1,516
Exception in thread "main" java.lang.NullPointerExceptionat Board. at<init>(Board.java:23) at PiratesDriver.main(PiratesDriver.java:14)
<p>hi im getting this error msg and i need help</p> <pre><code>Exception in thread "main" java.lang.NullPointerException at Board.&lt;init&gt;(Board.java:23) at PiratesDriver.main(PiratesDriver.java:14) </code></pre> <p>my code is</p> <pre><code>import java.util.Scanner; import java.util.Random; public class Board {...
3
3,588
Support vector machine from scratch
<p>I'm trying to build the linear SVC from scratch. I used some references from MIT course 6.034, and some youtube videos. I was able to get the code running, however, the results do not look right. I could not figure out what I did wrong, it would be nice if someone can point out my mistake. If I understand it correct...
3
1,601
Paho MQTT golang for multiple modules?
<p>I am writing a microservice in golang for a mqtt module. This module will be used by different function at the same time. I am using Grpc as a transport layer. I have made a connect function which is this..</p> <pre><code>func Connect() { //it would be Connect(payload1 struct,topic string) deviceID := flag.Stri...
3
2,801
Find point on ellipse given the angle, then reverse the process
<p>My first task is simple: find the points of the ellipse to be drawn on screen. I made an Ellipse class below with a method that takes in an angle between 0 to 2*PI and returns the point. </p> <pre><code>public class Ellipse { public PointF Center { get; set; } public float A { get; set; } /* horizontal s...
3
2,461
Prompt for information multiple times
<p>I am new to programming and I'm writing a simple robot in java to split PDF documents and save them to a file. AS of right now my program asks how many slips (PDF documents) there are and then it asks how many pages there are. The problem is that it only asks how many pages once. I need it to ask how many pages a...
3
2,309
UILocalNotification does not fire after 10 minutes in background
<p>I have a VoIP application. Which is working fine. Call is working in foreground and background.</p> <p><strong>Following steps are done:</strong></p> <ol> <li><p>UIBackgroundModes => voip in Info.plist</p></li> <li><p>Configured one of the app’s sockets for VoIP usage.</p></li> <li><p>Before moving to the backgrou...
3
1,179
Upgrade to Ruby 2.0.0 - Libtool
<p>I'm trying to upgrade from ruby 1.9.3 to 2.0.0.</p> <p>I ran </p> <pre><code>rvm upgrade 1.9.3-p448 2.0.0-p247 </code></pre> <p>The error I get is:</p> <pre><code>Error running 'requirements_smf_lib_install libtool', please read /Users/melanie/.rvm/log/1381637445_ruby-2.0.0-p247/package_install_libtool.log Faile...
3
1,820
vertically center the unordered list with class list-inline inside a div
<p>I am trying to vertically center the unordered list '.header-top-widget' inside a div. But no way it is being centered.</p> <p>I have tried:</p> <pre><code>.header-top-widget { display:flex; align-items:center; } </code></pre> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babe...
3
2,603
Im trying to get data from an Api with 100 results limit but im getting an issue when using timestamps to go further
<p>I wanted to do a simple script that calculates the number of certain actions in the game . The game has an api that is limited to 100 results per request, that is why they have unix timestamps if you want to go further and keep searching in a loop,the issue is that i take all 100 timestamps from the results add them...
3
2,218
How to access RESPONSE data from an AJAX Get in JQuery
<p>This is my first attempt at using an AJAX GET to pull data and it is really causing me a nightmare. I have used POST loads of times and assumed accessing the data would be the same basic process, but no matter what I try I always end up with &quot;Undefined&quot;.</p> <p>This is the code I have been trying to make t...
3
1,053
I have permissions and still get the java.io.FileNotFoundException: open failed: EACCES (Permission denied)
<p>I'am targeting SdkVersion 29 and I'm trying to play a song located in my external storage sdCard but it keep showing this error :</p> <pre><code>W/System.err: java.io.FileNotFoundException: /storage/E0FD-1813/Music/3_INTRO.mp3: open failed: EACCES (Permission denied) V/MediaPlayerNative: isPlaying: no active player...
3
2,319
Admob not displaying on Android Platform
<p>I'm having trouble displaying ad inside my android app in xamarin form, in iOS everything seems to work fine but on Android I'm just getting a blank view here the two screenshot : <a href="https://i.stack.imgur.com/soWuf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/soWuf.jpg" alt="enter image d...
3
4,032
MVC custom error view issues when site is deployed
<p>I'm seeing weird issues once a site is deployed. I have specified a custom error controller &amp; view in the Global.asax.cs using the following:</p> <pre><code> protected void Application_Error(object sender, EventArgs e) { var httpContext = ((MvcApplication)sender).Context; var currentContr...
3
1,632
How can I assemble this program
<p>I have the following assembly program which I copied from <a href="http://download.intel.com/design/intarch/papers/323405.pdf" rel="nofollow">this</a> document (See A.4). I really don't know which assembler in Linux will be able to compile this. I know its in Intel Syntax and I tried to use the <code>-masm=intel</co...
3
5,999
Getting Error recompile with -fPIC although POSITION_INDEPENDENT_CODE flag is enabled
<p>I am trying to link afinit_state.a library with my C++ project through cmake. But I am getting bolow attached error. My cmake file is:</p> <pre><code>cmake_minimum_required(VERSION 3.12) project(java_telemetry_wrapper) set(CMAKE_CXX_STANDARD 14) find_package(JNI) set(JAVA_INCLUDE_PATH &quot;$ENV{JAVA_HOME}/includ...
3
1,716
How would I set a string variable and pass it into a File reader scanner as a file name?
<p>I am writing a Cipher program which asks the user for a file name, stores the name as a variable, and is then supposed to read the file based on the String variable. It compiles, but I keep getting an IOException when I try to run it. </p> <pre><code> java.io.FileNotFoundException: (No such file or directory) at ...
3
1,475
How do I turn an Array into String?
<p>I'm trying to add my data from a form into my database. But when I click the submit button, it shows me this error:</p> <pre><code>Notice: Array to string conversion in C:\xampp\htdocs\stock\php_action\createAppointment.php on line 16 Notice: Array to string conversion in C:\xampp\htdocs\stock\php_action\createApp...
3
1,250
Insert or update a document in ArangoDB fails with constraint violated
<p>I would like to achieve an Upsert in ArangoDB, but I can't get it working with the examples provided in the documentation of <a href="https://docs.arangodb.com/3.4/HTTP/Document/WorkingWithDocuments.html#create-document" rel="nofollow noreferrer">create-document</a>. My requests fail with a <code>unique constraint v...
3
1,481
Intermittent "Aborted Core Dumped". Maybe static_cast's fault?
<p>I'm writing a graph based backpropagation neural net, as a personal project. Still on the forward prop step. It compiles. Successfully runs half the time, crashes at the very last step half the time. It appears to be dying on some garbage collection step. I'm new to virtual functions and static_cast, so I wonder if ...
3
4,665
How to pass two object at a time to the template using Rails Ajax call
<p>I want to pass two object to the template which is going to render after Ajax call using Rails 3.See my below controller file.</p> <blockquote> <p>controller/homes_controller.rb</p> </blockquote> <pre><code>class HomesController &lt; ApplicationController def home @sdf=TSdf.new respond_to do ...
3
7,535
Why all the text in my site is in upper case
<p>I downloaded some free web templates and updating the site as per my needs. I observed most of site content is displayed in upper case. Can someone help me, how to disable this? Attached is the screenshot of the page. All links and content is displayed in uppercase.</p> <p>How to display this in normal case letters...
3
1,209
Remember selected day and show list after refresh
<p>I’ve a layout (Let’s call it WeekReservations) with different textview which represent the days of this month. For each day there’s a listview with reservations. The listview is for each day different. Also for each selected day you can make a reservation.</p> <p><strong>First time landing on WeekReservations</stro...
3
5,132
Cmake vcpkg and Bullet
<p>I am very much lost here and could really use some help.</p> <p>I'm working on an Honours project for next year that involves a physics simulation using Bullet and Vulkan for rendering. After a few months of work I have most of the project functioning. It needs a lot of refactoring and cleaning which will be the nex...
3
4,450
jQuery Dialog ReOpens after Page Refresh or Page Back
<p>I have a GridView with a ButtonField that displays the Project ID for each row.</p> <p>When the user clicks on the Project ID (ButtonField) it opens a jQuery modal Dialog with a more detailed view of the project. When the user closes the Dialog (using the X in the upper right corner) the Dialog closes and everythin...
3
1,120
ReactJS - Component with optional props inside React Context
<p>In my app, there is a <a href="https://github.com/gorhom/react-native-bottom-sheet" rel="nofollow noreferrer">bottom sheet</a> in the top level of my navigation system. As it is showed/hidden when the user interacts with the elements of other deeper screens inside the navigation system, I have had to wrap it inside ...
3
1,135
Caliburn.Micro Navigation causing StackOverflowException
<p>I'm trying to set up navigation in an MVVM app using Caliburn.Micro and its <code>SimpleContainer</code> class. I need to inject my <code>ShellViewModel</code> into the <code>Navigator</code> for it to access the <code>ActivateItem()</code> method. When the shell view first loads it needs to activate the first child...
3
1,832
Nested grid with 2 section displays inconsistent rows sizing and overlaps elements
<p>I'm currently laying out a dashboard web application and decided to use nested grids. The idea is to have the grid display 27 raws and 5 columns. The menu (1st subgrid) should span on the first column and the rest of the columns should contain the second subgrid where the content will be displayed. Let's call it mai...
3
4,756
Having trouble reading and printing out a .csv file
<pre><code>package animalfilereader; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.*; public class AnimalFileReader { public static void main(String[] args) throws IOException { ...
3
1,636
Spark serialization error: When I insert Spark Stream data into HBase
<p>I'm confused about how spark interact with HBase in terms of data format. For instance, when I omitted the 'ERROR' line in the following code snippet, it runs well... but adding the line, I've caught the error saying 'Task not serializable' related to serialization issue. </p> <p>How do I change the code? What is ...
3
1,669
Website login system
<p>I'm working on a website and I would like to allow users to be able to login to the site. I'm a self taught developer so I'm not exactly sure what the best practices are. I've used bcrypt before in my java applications and have implemented it below in the password php file below (only real important lines there are ...
3
2,194
A custom angular two-state checkbox component issue
<p>I'm trying to create a custom checkbox component to replace an old-old NG Prime version that had been being used but wanted to make it leaner/cleaner with some added aria points and utilizing more of the checkbox attributes directly. The problem I'm running into though (I'm guessing) is with updating the value acces...
3
2,189
php project deployment new problem
<p>i have done one php project and i have uploaded it on server.I had devlopveped it on windowas and now i am trying to deploy it on remote linux server. But i am geting error. Some parts of page are not shown i donr know why? For example i have one page appply as follows . i can see only top part other parts i cant s...
3
6,758
How can I unlist a nested list and keep the names of the sublist (as is) and the names of the elements?
<p>I have a nested list with 3 levels:</p> <ol> <li><p>length of string (I don't care about that when all is done, it's just for the ordering of the lists)</p></li> <li><p>Category (I want to keep this in the output)</p></li> <li><p>Elements (strings I also want to keep)</p></li> </ol> <p>I want to unlist/flatten thi...
3
1,649
HTML5 ServiceWorker slows down page loading dramatically
<p>I am using Google Lighthouse to figure out ways to speed up my page loading time.</p> <p>One of the red points was that I was missing a Service Worker. So I get one working.</p> <p>Before I used the Service Worker my page was fully loaded and ready in 7 seconds. After I added the Service Worker my page fully loads...
3
2,837
Failed load PDF from file DJANGO using embed tag
<p>Im trying to load a PDF</p> <p>My .html</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-12"&gt; &lt;embed src="{{ documento.adjunto.url }}" type="application/pdf" width="100%" height="600px" /&gt; &lt;/div&gt;&gt; &lt;/div&gt; &lt;/div&...
3
1,758
Using jQuery to change a dropdown menu when a checkbox is checked
<p>i'm a bit confused about how to go about this problem. Currently when a user changes the "quantity" from the dropdown, it checks the checkmark, but when its moved to zero the checkmark is unchecked. </p> <pre><code>var val = 0 $('.drop').on('change',function() { var val = $(this).val(); if(val &gt; 0) {...
3
1,494
issue with knockout binding and mvc4?dropdown values are not submitting to action method using knockout?
<p><strong>Requirement</strong>: </p> <p>My requirement is i have to get countries ,states and cities data from databse and bind it to dropdown (cascading drop down) using knocout in form.. and i add firstname and lastname to that form.. finally i have to submit the dropdown values along with firstname and lastname to...
3
2,790
IndexOutOfBoundsError while coding a Game in Java
<p>I ran into a IndexOutOfBound error while coding a school project. This problem isn't stable, this problem seems to occur very random... </p> <pre><code>public void run(){ // Main game methode Image Background = this.images.get(0);//get background because we can Player Player1 = this.players.get(0);//get pl...
3
4,531
django celery error: Unrecoverable error: AttributeError("'EntryPoint' object has no attribute 'module_name'")
<p>I am perplexed,from a weird error which i have no idea as i am new to celery, this error occurs on just the setup phase, every thing is simply configured as written in the celery doc <a href="https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html" rel="noreferrer">https://docs.celeryq.dev/en/stable/d...
3
1,602
Async TCP Server Programming with Python And Postgresql
<p>I have some embedded C programming experience but new with Python.</p> <p>I designed a sensor circuit. The circuit will connect a TCP server via GPRS and will send some sensor data. I will have 1000-2000 device and those ones will stay connected to TCP server 7/24 and each of them will send approximately 100-150 byt...
3
1,032
Reference instance when MainWindow is not the startup window
<p>I am doing some application for college and I have successfully been able to show and collapse usercontrols in my application, but when the window I am trying to do it is not the one that starts when the application starts, it just doesn't work.</p> <p>I have a mouse event that works when I click on one of the labe...
3
1,560
transition from edittext to button
<p>I need transition from edittext to button. When I writing password in edittext, "zaloguj" come up -> <a href="https://zapodaj.net/1166d338c3812.png.html" rel="nofollow noreferrer">https://zapodaj.net/1166d338c3812.png.html</a> but when I click it then application shut off. When I clicked button or 'tab' and next 'en...
3
8,435
Every time modal open same file
<p>I have a problem. I want my data dynamically view in modal. When I click first modal button its open dynamically and show data then when I click second button its show same previews data which opens first time. After reload the page when I click second its open dynamically again when I click first button its show s...
3
1,742
Core data searching error (used NSString)
<p>I have search problem used to core data !</p> <p>-CASE 1 // It doesn't work</p> <pre><code>-(BOOL)isHeThere:(NSString*)tmpIdm{ NSString *idm = [tmpIdm uppercaseString]; NSLog(@"%@",idm); AppDelegate* appDelegate = [UIApplication sharedApplication].delegate; NSFetchRequest *request = [[NSFetchRequ...
3
1,337
Only mapping from department side is mapped and not from inverse side.How can i say this is a Many to Many
<p>Below is the code </p> <pre><code> package com.hibernate.mapping.mtm; import java.util.ArrayList; import java.util.List; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; /** * @author Pr...
3
3,785
Join data frames on multiple variables in r with inexact match
<p>I'm trying to merge two data frames on three columns where 2 columns are exact and one has a variance of +/- 5%. I'd like to merge on 2 factors + 1 numeric.</p> <p>Here's the code I've used so far:</p> <pre><code>`matched &lt;- merge(x = plans, y = sales, by = c("Subdivision","Builder","SquareFootage"), all.y = TR...
3
2,389
Why isn't my JS code working? I'm trying to get this code to generate a random password
<p>EDIT: Made some changes, now when I click generate password, I get back 'undefined'. Progress!</p> <p>EDIT #2: Now I am not getting 'undefined' when I click, but devtools says at line 26 i am exceeding maximum call stack. How do I fix that?</p> <p>Javascript is really hard, man. I'm trying to get this code to ge...
3
2,051
How to remove and append from loop array Javascript?
<p>i have a form like this. <a href="https://i.stack.imgur.com/V7ivb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V7ivb.png" alt="enter image description here"></a></p> <p>when i change from country, how to remove this form and append again from looping array. if data only one, show Add Form Butt...
3
1,668
Socket Programming using mysql in java
<p>I have created the client and server pages. I need to connected to a database, but when I run the server first it is working. Starting the Server then I run the client page, I got the error was display SEVERE: null. I don't why. I have attached code below. I have a problem with client page. Is there any thing wrong?...
3
3,014
Firefox could not display SVG img properly
<p>In desktop version of Firefox (version 56.0), the SVG image was displayed incorrectly. For example, with the following SVG image for twitter logo, it shows something that not even close to twitter logo. The same SVG image is displayed properly in other browsers, (IE11, Edge, Chrome, etc.). Is this a bug in Firefox? ...
3
1,111
Simple PBFT issue
<p>When I use same code with simple-validate and 3 nodes RAFT that are all ok. but I change to BFT. report below error. Actually I only use one un-consume make as input. but not sure why report below error. My code based on M14 version.</p> <p>[WARN ] 2017-09-26T14:01:38,402Z [Node thread] flow.[9c5ea2df-43ef-4ff8-a95...
3
1,070
C# datagrid bindingsource null exception error
<p>I have been working on an application to update data in a database from a datagridviewer. The issue I am running into here is that after I change a row, I try to refill the data adapter so I am able to see a refreshed view of the database. However, when I try that, I always get an error on the BindingSource_Position...
3
3,802
symfony2 doctrine exception insert
<p>In symfony2 when I insert data into to database I receive an exception: </p> <pre><code>An exception occurred while executing 'INSERT INTO practice_user (user_id, practice_id, practice_text, type_id) VALUES (?, ?, ?, ?)' with params [null, "1", "test", 2]: SQLSTATE[23000]: Integrity constraint violation: 1048 Col...
3
3,959
Layouts get additional border
<p>I'm trying to get a full width image / photo gallery with isotope. My problem is that Isotope adds some additional pixels around each image when it's loaded for the first time, so there is a black border around each image. When I resize my window the borders disappear and when I resize it back to full screen it's al...
3
1,818
Unexpected multiple instance creation in jstree delegate
<pre><code>var json_string=$.parseJSON(document.getElementById("json_db").innerHTML); $(function () { $("#folder_tree").jstree({ contextmenu: {items: customMenu}, "json_data" : {data:json_string}, "plugins" : [ "themes", "json_data", "ui", "contextmenu" ], }); }); function customMenu(...
3
1,425
DjangoUnicodeDecodeError in administration with DEBUG=False
<p>I have a little wierd problem with Django administration. With DEBUG=True in settings.py, everything works fine. But when I change it to DEBUG=False, I can't get to page editation of item. I get this error:</p> <pre><code>Traceback (most recent call last): File /home/yetty/projects/Tchorici/venv/local/lib/python...
3
2,610
Tkinter conditional display from previous page's checkBoxes/checkVars values
<p>I am currently working on an GUI using tkinter and I am encountering an issue.</p> <p>I want the user to be able :</p> <ol> <li>To select within page 'sensors_history_homepage' an arbitrary number of columns from checkbuttons (1 per column name),</li> <li>Then when clicking a button, a new page 'sensors_custom_histo...
3
3,774
React Native promise and queue
<p>I have a localization in my project; and before calling the component, I want to call the setI18nConfig () method, which is responsible for languages. But when I call it, the component is processed first, and then this method. That is, this method becomes the last in the queue. I think this is because of the promise...
3
1,086
Python code runs but doesn't execute
<p>So basically my code runs, but it doesn't execute properly. I'm not sure what I did wrong. Here's the code. When I type something in the shell, it just ignores it. How would I fix it? I've never really used a <code>if "___name__ == '_main_':</code> function before so would that be why? </p> <pre><code>import os.pat...
3
1,297
3 Column Site Columns Floated Left But Not Appearing in Correct Order
<p>I'm working on a 3 column site which I am converting to a RWD and which was previously laid out with nasty neg px margins but I am converting all this to percentages and em's so that the site will best suit a wide range of devices.</p> <p>My problem is very similar to the post that can be seen here; <a href="https:...
3
1,595
My $push method in Mongoose does not work ok
<p>I have a problem understanding why $push creates only one element in nested array and shows only the id of that element</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>c...
3
1,445
syscall.Syscall6 exception when running FTP client written in Go
<p>I'm trying to write a simple FTP client in Go which will connect to an FTP server, download any files matching a particular pattern (*.xml), and then remove them from the server. I am using Go because it has easy to use support for cross-compilation (important for development) and produces a single static binary (im...
3
2,444
Sending message from wearos app to phone: onMessageRecieved not called after update targetSdk
<p>After change phone app targetSdk from 29 to 30 ,<code>MessageClient.OnMessageReceivedListener</code> <code>onMessageReceived</code> not receive message from wearos app. if I set targetSdk to 29, it's works.</p> <p>here is my test code : wearos app part</p> <pre class="lang-kotlin prettyprint-override"><code>import a...
3
1,834
Junit5 mockMvc perform put with array in content
<p>I would like to use mockMvc perform to run a mock content put request that is coming in as JSON. This JSON object includes an array of type Long. Is it possible to add an array into mockMvc perform put().content()? I have tried the below but it is not recognizing the array.</p> <pre class="lang-java prettyprint-o...
3
2,742
How to reduce time complexity under c++ with nested loops and regex?
<p>I have such function.</p> <p>Input argument - vector of user names, vector of strings, number of top users.</p> <p>First I count amount of occurancies for each user in strings. If there are several occurancies in one string - it still counts as 1.</p> <p>Then I sort it by amount of occurancies. If amount of occur...
3
2,098
Keras classification improvement
<p>I want to find a dog in a picture. I have trained my model with 2 classes. 0-dog, 1-nondog. 9500 for training and 3000for validation each. My model:</p> <pre><code>#model dog/nondog categorical more features to extract model = Sequential() model.add(Convolution2D(128, 3, 3, input_shape=(3, image_w, image_h))) model...
3
3,925
Javascript jQuery - selecting select box option only works sometimes
<p>the project is an MVC project writen in PHP</p> <p>I have an AJAX call in a veiw that echoes, into a div, a bit of Javascript that does some things on the page. At the end of the script is a piece of JQuery that should change a select boxes selected option. I did plenty of research into switching select options on ...
3
1,079
Working on Program Called DieToss that Searches for Duplicate Tosses. How can I limit where parentheses can close?
<p>Hello StackoverFlow Community</p> <p>I am working on a DieToss program intended to print random sequence numbers given an inputted length and the randomized toss needs to be between 1 and 6. The goal is to put parentheses around the longest or first string of duplicates.</p> <p>The issue here is that it continues to...
3
2,335