title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How can I add to the quantity variable every time the user clicked the button?
<p>I have two <code>JFrame</code> in my GUI.</p> <p>One is <code>order</code> frame and another is <code>payment</code> frame.</p> <p>I would like to add onto the <code>quantity</code> variable every time when the user clicked on the <code>button</code>. I have added the increment-logic under the button method, but i...
3
1,217
Metaio App in Unity3D not building from XCode
<p>I am trying to build an augmented reality app built in Unity3d using the Metaio Unity SDK. The app uses a CAD model as a target upon which it augments stuff. It looks for something like the reference CAD model in the real world and then latches onto that. In XCode, I add, from Libraries, the metaiosdk file (not m...
3
3,706
Optimizing Cypher Query for performance
<p>This is a follow up question to my previous question:<a href="https://stackoverflow.com/questions/32489549/correct-way-to-create-json-from-neo4j-rest-api#">Correct way to create json from neo4j rest API</a>.</p> <p>I was able to get the JSON exactly in the format I required with the help provided to me by @Michael ...
3
19,562
The value retrieved has a null value. How to eliminate them?
<p>I already succeed in retrieving the RGB pixel value from compareHexaRGB method. And the output doesn't seem convincing as the output includes with a null character too. How can I eliminate them? </p> <p>Second, when I tried to combine String[][] char 1 + char 2 I get an error stated that it is bad operand for type ...
3
2,795
iOS: forcing server to provide updated data
<p>I'm working on an iPad app that requests data from a server, changes and submits it, and then re-requests the data from the server, displaying it to the user. The app updates the data just fine (the equivalent web app sees the update happening), but the data that the iPad app gets back is the old data. I thought may...
3
1,756
Why are my separate random objects being assigned the same values?
<p>sorry for the long post. I suspect my issue is fairly easy to solve but (I think) the code I must post for it to make sense is quite long in length, so I apologize. If there was a way for me to shorten this post while still having it make sense that I'm not aware of, I'd appreciate the feedback.</p> <p>I am working ...
3
2,126
JFrame and JPanels
<p>I'm making a GUI, which allows me to choose one of few options, which have more options(buttons). I'm inexperienced at Java and have some problem with it. </p> <p>Why <code>this.dispose()</code> doesn't open new <code>JPanel</code> after clicking <code>Button11</code>? How I can open new <code>JPanel</code> exactl...
3
1,324
React - Passing value between components
<p>I'm practicing React by trying to solve a puzzle. If anyone could help me get a bit further, I would appreciate it. </p> <p>Essentially I have two components, an input and a table. The input should be a number to place in the bottom-left cell of a table, it starts with a number N and increments by X from LTR then u...
3
1,691
RecyclerView selects multiple items on a item click
<p>I have implemented a <code>RecyclerView</code> to display a list of Contacts (200 approximately). A user can select multiple items. The selection make visible a tick to indicate to the user the selected contacts. However, when the user select a item, the tick appears on several non-selected items. The frequency of o...
3
2,852
onChange in react not working as I would expect
<p>given this datatype for tables an array of object of objects:</p> <pre><code>[ { &quot;1&quot;: { &quot;1&quot;: &quot;Item s &quot;, &quot;2&quot;: &quot;Manufacturer &quot;, &quot;3&quot;: &quot;Mir s &quot;, &quot;4&quot;: &quot;Decoription &quot;, ...
3
1,824
Error sending form by Ajax and PHP
<p>Ok so i got a form that i want to sent with information inputted by the user... I wonna do this with Ajax and php but i have a problem with the syntax i guess i'll post my javascript code and php code below and hopefulle someone can help me out</p> <p>this is the code i use to send the data from the form:</p> <pre...
3
1,784
ASP.NET Core custom Authorization always allows user
<p>I am trying to make a custom authorization system I am following the answer given by Shawn here <a href="https://stackoverflow.com/questions/31464359/how-do-you-create-a-custom-authorizeattribute-in-asp-net-core">How do you create a custom AuthorizeAttribute in ASP.NET Core?</a>. However, I have a problem getting it...
3
1,532
How to change how my JSON looks
<p>I have an AJAX call that makes my JSON look this in my JSON file:</p> <pre><code>{ "main_object": { "id": "new", "formData": "language=nl_NL&amp;getExerciseTitle=test&amp;question_takeAudio_exerciseWord%5B0%5D=test&amp;Syllablescounter%5B0%5D=test&amp;Syllablescounter%5B1%5D=test" } } </code></pre> <p>...
3
1,617
'Null'? Problems with assigning in a class
<p>The problem is that I am getting an unexpected error from my movie reviewer.</p> <pre><code>import java.util.Scanner; public class deTest { public static void main(String[] args) { Scanner kbScanner=new Scanner(System.in); aClass bClass=new aClass(); System.out.print("What is the movie you want to re...
3
1,104
Why cant I pass this variable from one class to another
<p>I am stuck and need some help understanding why this is not working.</p> <p>I want to be able to download the HTML of a page and then format it to show correctly, the code inside the second class (spriing) will download and display the HTML in a UITextView if it is placed inside the ViewController, however this is ...
3
1,961
Docker secret not mounting to default location
<p>I'm using docker-compose to produce a docker image which requires access to a secure Azure Artifacts directory via Paket. As I'm sure at least some people are aware, Paket does not have default compatibility with the Azure Artifacts Credential Provider. To gain the access I need, I'm trying to mount the access token...
3
1,137
dyld: Library not loaded (With Pyglet)
<p>I'm a newbie with python, and I'm trying to run a small tuto with using OpenGL on OSX.</p> <p>So my script is something like this:</p> <pre><code>import pyglet from pyglet.gl import * win = pyglet.window.Window() @win.event def on_draw(): # Clear buffers glClear(GL_COLOR_BUFFER_BIT) # Draw some stu...
3
3,556
jQuery not executing onClick for a class of buttons
<p>Javascript:</p> <pre><code> &lt;script&gt; $(document).ready(function(){//So far AJAX isn't asyncn. $(".acceptorbutton").on('click', function(){ var whichClicked = this.attr('name'); var cat = parseInt(whichClicked, 10); alert("this ...
3
1,232
angular dom takes forever to re-render
<p>Something has gone south in my code.</p> <p>i have basically commented everything out of my component so that i looks like this now:</p> <pre><code> &lt;div *ngFor=&quot;let restaurant of restaurants&quot;&gt; {{restaurant.updated}} &lt;/div&gt; </code></pre> <p>And after my http call to my api (which t...
3
1,068
Sticky Column in Bootstrap 4 That Doesn't Overlap Footer
<p>I have a page with multiple columns, a header, and a footer. I want a column to scroll with the user, but not overlap the footer:</p> <pre><code> &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;div id=&quot;wrap&quot;&gt; &lt;div id=&quot;main&quot; class=&quot;clear-top&quot;...
3
1,069
NLog 5.0 with .net Framework 4.7.2 - aspnet request renderers are empty
<p>Using NLog 5.0, NLog.Web 5.0 and NLog.Database 5.0. I am attempting to log the aspnet request variables as described in the documentation. I log everything else just fine. Here is the code to setup the logger. I also included the internal log file which I had set to Trace.</p> <pre><code> var config = new Logging...
3
1,965
Is there an alternative to this code that looks neater and is more comprehensible?
<p>I have this code which loops through a set, and checks to see if one of the items in the set is a folder, and if it is, it checks to see which folder it is and then proceeds to perform an action based on what folder it is. I'm not really sure how to explain why there are two loops, so I'm hoping you guys can look at...
3
1,101
Issue rendering bookdown with bootstrap
<p>I am setting up a bookdown and struggling to render the book using bootstrap. I can render without issues using gitbook but run into errors using bootstrap. For now, the book is pretty simple so I am unsure where the issue lies.</p> <p>The error message from the Build window</p> <pre><code>output file: 04-project_02...
3
1,442
The jenkins parallel at the same time using pop() to a global list, lead to Cannot pop() an empty List?
<p>need help The problem of multiple threads sharing global variables in Groovy or Jenkins DSL</p> <p>I have tried all sort of ways but nothing seems to be working. Here is my jenkinsfile.</p> <pre><code>def fill_list() { def test_list = [] for ( int i = 0; i &lt; 160; i++ ) { test_list.add(i) } ...
3
1,464
How to move item to the last position when Checkbox is checked? (RecyclerView, ViewHolder)
<p><a href="https://i.stack.imgur.com/t5Q9m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t5Q9m.png" alt="enter image description here"></a></p> <p>I try to make a RecyclerView who contains checkBoxes (if something is already bought). I want to move item to the last position on CheckBox checked ch...
3
1,493
FANN doesn't train properly
<p>I am trying to approximate the square function with FANN. The code follows:</p> <pre><code>#include "../FANN-2.2.0-Source/src/include/doublefann.h" #include "../FANN-2.2.0-Source/src/include/fann_cpp.h" #include &lt;cstdlib&gt; #include &lt;iostream&gt; using namespace std; using namespace FANN; //Remember: fann_...
3
1,176
Why I have to use 'include' again in grunt-requirejs to optimize into a single js file?
<p>I'm trying to use <code>grunt-requirejs</code> to optimize my requirejs project into a single production js file. However, I'm not sure if my Gruntfile.js is correct because I have to specify which model to include during the optimization again, which seems wrong to me as I specify mainConfigFile already. I thought ...
3
1,784
Facebook Permission Dialog doesn't prompt
<p>I'm creating an Android App that ask the user for this permissions: Default Login permission + user_friends + publish_action.</p> <p>In my first activity i did the Login + ask the "user_friends" permission and work great.</p> <p>Now in my Second Activity i want to ask for the "publish_action" permission after a A...
3
1,486
iOS7 UITapGestureRecognizer method is not called
<p>I am working on UIPickerView with multi selection in iOS7 and used UITapGestureRecognizer for multi selection.</p> <p><strong>In iOS6 its working fine but in iOS7 toggleSelection: (UITapGestureRecognizer) method is not called.</strong></p> <p>So Please give me idea or suggestion for resolve this issue.</p> <p><st...
3
1,113
How can I pull and save strings from text input boxes?
<p>I am working on a python pygame program and need to collect user text inputs and save them as strings. The text input boxes the user will input data into are part of a single class as shown below. I am new to programming and am unsure how to collect a string from the 6 input boxes created from the class as it seems ...
3
1,791
Cannot concatenate two arrays with numpy - ValueError: all the input array dimensions for the concatenation axis must match exactly
<p>I'm facing an issue regarding the strucutre of a dataframe I wish to create.</p> <p>I'm actually scraping two sort of datas from a single webpage among many others in order to construct a data set of product list.</p> <p>The first <code>array at index 0 has size 3</code> is actually represented by <code>cols = np.ar...
3
5,532
Separate big xml into multiple small xml file
<p>This is the books.xml which contains all the information of books.</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;root&gt; &lt;Book&gt; &lt;Name&gt; Book1 &lt;/Name&gt; &lt;Price&gt; USD.10.00 &lt;/Price&gt; &lt;/Book&gt; &lt;Book&gt; &lt;Name...
3
2,032
SpringBoot application with Jack Rabbit oak implementation taking too much time to start
<p>I am working on Spring boot application(Content Management System) which stores multiple files in amazon-s3 repository with the help of jack rabbit oak node structure implementation and all node metadata stores in PostgreSQL 10.4 db. Our application is deployed on Cloud foundry, Wherever application start after push...
3
1,153
How do I get my image that uses backface-visibility to not disappear after transforming?
<p>I've looked at other questions on here with similar issues, but couldn't get their solutions to help fix mine.</p> <p>Here is the fiddle: <a href="http://jsfiddle.net/darknessflowers/6k512emb/" rel="nofollow noreferrer">http://jsfiddle.net/darknessflowers/6k512emb/</a></p> <p>The problem is that the parent div (card...
3
2,806
How to ignore overlying views and detect onFling (onSwipe)?
<p>I have a view with a lot of Childs. What I need is to implement reaction on Swipe or on Fling moves. Problem is that it only really works if I remove all Childs, otherwise Child views on the top of the main layout block my attempts to swipe.</p> <p>I tried both adding onSwipeListener to the main layout and adding G...
3
1,386
AdMob Adserving disabled from my application
<p>The Reason is the interstitial ad is on wrong way. Can someone tell me Is there a problem with my interstitial? Where to put it? My code from where interstitial is:</p> <pre><code>public class ActivityMain extends Activity implements OnItemClickListener, onWelComeButtonClickListener, OnClickListener { MatrixCur...
3
4,673
Getting an error function doing ajax call once I put this variable in
<p>For some reason, I keep getting error function in ajax call whenever I put this <code>"ntaReqRef": ntaReqRef</code> but when I don't include it my ajax call works perfectly so I am stuck as to whether it is illegal or does it have to do with my code because when I execute the code, it shows the correct response in ...
3
1,940
KeyListener for multiplayer game with keys being pressed at the same time?
<p>I am writing a Two Player snake game. The Arrow Keys respond to one snake and the WASD Keys respond to the other. However I have noticed in my code that if one key for each snake is pressed at the same exact time only one snake turns. I have two KeyListeners that contain an array of the four keys it should be respon...
3
1,328
Find class by generic interface
<p>In my application I have the following class to get instances of an interface:</p> <pre><code>public static class ServiceProvider { private static readonly Dictionary&lt;Type, dynamic&gt; _serviceStorage; private static readonly object _serviceLock; static ServiceProvider() { _serviceLock =...
3
1,236
Can I place text into 2 boxes rather than 1 using AJAX
<p>I have made a simple html page which fetches info from one of my databases' tables and pastes it into a text box. It does this by connecting to a PHP via an AJAX function which handles the request.</p> <p>What I am wondering is whether this data could be placed into two text boxes, rather than just the one. I don't...
3
1,126
Java Application Window is very slow
<p>Hi i have created a Java Application Windown where it should connect to the database and change orders status and also see them more in more detail. But for no reason the app went very slown and doesnt execute the UPDATE commands, Wheres the code:</p> <pre><code>/** * Create the application. */ public EstagioGUIT...
3
16,959
403 error when inserting event with attendants in Google Calendar Api c#
<p>In a .net project, I'm trying to add an event with some attendants with google calendar v3 api. I can create an event without attendants successfully, but when I try to add attendants, it gaves me the following error:</p> <pre><code>Google.Apis.Requests.RequestError Calendar usage limits exceeded. [403] Errors [ ...
3
1,803
Python3 sorting lists of nested dicts with lambda
<p>I have a deep nested object of various lists and dicts that I retrieve as json which I need to compare to another version of itself. The issue is that all lists are basically unsorted, therefore I need to sort before comparing them. Any deep diff library I've tried failed without proper sorting the dicts position in...
3
1,545
SqlException Connection.Open() in Device Application
<p>I have this code for my price checker device running on Windows CE</p> <p>But I get a <code>SqlException</code> on the line</p> <pre><code>cmd.Connection.Open(); </code></pre> <p>Is the problem in the connection string or in another part of my code?</p> <pre><code>constring = "Password=12345;Persist Security Inf...
3
1,153
Adding a background image under a background color function
<p>I have the three functions running on my interactive pet (change background, dimmer lights, mouse follow). I'm trying to add an image to the background of the body, but every time I try it gets pushed to the top and the dirty/clean tank function doesn't work. Could someone tell me how to change the color sections of...
3
1,038
Why does loss increase when I unfreeze all weights by transfer learing using Tensorflow2
<p><a href="https://i.stack.imgur.com/Xy5r7.png" rel="nofollow noreferrer">loss</a></p> <p>I have wrapped resnet50 model of tf.keras with some conv layers and dense layers. I used the pre-trained weights from ImageNet</p> <p>First I trained my model while I freezing weights of resnet50. The loss decreased to a good val...
3
1,269
UDP Sockets - One server, mulitple clients. Not sent to all clients
<p>I am writing in windows, using Visual Studio, and am trying to have one application use UDP sockets to broadcast a message to other applications. This must be done with UDP sockets.</p> <p>It works well with just one client, but it does not when I add another client, and all listen on the same port.</p> <p>TX (Serv...
3
2,416
adding array contents into a csv file
<p>I've scoured many sites trying to resolve my issue, but most answers is related to using a single array. I'm trying to read 2x text files. Each file is filled with multiple csv lines. From these two files do I search and select very specific information. My aim to then to write a single CSV file filled with info I s...
3
1,108
Split trained autoencoder to encoder and decoder
<p>I realize now that implementing it like <a href="https://stackoverflow.com/a/54931203/386738">this</a> would have been a good idea. However, I have an already trained and fine-tuned autoencoder that looks like this:</p> <pre><code>Model: &quot;autoencoder&quot; _______________________________________________________...
3
1,194
How to get data from mongodb to put in an option?
<p>I am creating a dashboard table for displaying the saved data in mongoDB. I already have a table and display all the data in the table, now what I want to achieve is to create a <code>select</code> element above the database table the <code>select</code> element should contains all the available dates from mongodb. ...
3
2,245
Create http request to upload and get file from s3 base api gateway aws
<p>I have made a method to request API Gateway AWS to PUT and load to upload a binary file to s3. </p> <p>I have created some common methods to create Authorization header like this <a href="https://forums.aws.amazon.com/thread.jspa?messageID=819688" rel="nofollow noreferrer">https://forums.aws.amazon.com/thread.jspa?...
3
1,191
i'm trying to configuring liferay with mysql but i have a oracle give me this wrong results
<p>I'm trying to configure Liferay 7 with MySQL but when I try to make the connection between the server give me these errors where I've done wrong?</p> <p>30-Aug-2019 15:09:35.734 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [963] milliseconds Loading jar:file:/C:/Users/user/Desk...
3
2,918
Error using Spring Integration
<p>I need to create an application that transfers files from local to remote SFTP server. I have to do it using Spring Integration, I followed the documentation but I have not been able to make it works. When I run it always get the error:</p> <pre><code> may 15, 2017 12:15:37 PM com.test.tt.file.sftp.out.SftpFileM...
3
11,896
WMI Folder Add ACL Type Mismatch
<p>I am attempting to write a small application to update folder permissions. I have written the following code to remove <code>oldGroup</code> and add in <code>newGroup</code>.</p> <p>When I call <code>InvokeMethod</code> I catch an exception <code>HRESULT 0x80041005 - Type Mismatch</code>. Not very helpful! If I com...
3
1,548
How can I make this callback function only be called once? after my For loop
<p>The context is that I am trying to retrieve a list of records called <code>Posts</code> from a <code>firebase</code> database, first above I have gathered all the 'subcribed clubs' the user is in and put them in the array <code>SubscribedClubsList</code> in this instance the array contains the values <code>ALT5</cod...
3
1,112
How to use css nth-child to target columns in a fixed grid size?
<p>In html/css, I have boxes wrapping in a parent box. We know for sure it will have 4 columns exactly.</p> <p>This is what I have so far</p> <p><a href="https://jsfiddle.net/f1cow40z/1/" rel="nofollow noreferrer">https://jsfiddle.net/f1cow40z/1/</a></p> <pre><code>&lt;div class=&quot;Parent&quot;&gt; &lt;div class=&...
3
1,575
my Bluetooth cannot connect to the device
<p>i am trying to use my android phone to connect to the pc or hc01 but know the code that i write cannot connect to the phone now so anyone can help me out and the UUID what should i use or have anyone have some demon for me to try out thanks</p> <p>i don't why i click and it always connect fail and the logcat will ...
3
1,992
When creating a second object in C++ through the first object, where does the first object go?
<p>I am currently reading the second edition of <em>C++: A Beginner's Guide</em> by <em>Herbert Schildt</em>. </p> <p>In Module 9.4, he talks about returning objects:</p> <blockquote> <p>Just as objects can be passed to functions, functions can return objects. To return an object, first declare the function as re...
3
1,104
JTable Tooltip from sql?
<p>I have been bugging with this for 2 days now. I have a <code>JTable</code> that is being generated with SQL from two tables. </p> <p>The thing is I now need to get a <code>Mouseover</code> tooltip to work, with specific information from one of the tables. And its not working.</p> <pre><code>public class Ausgabe ex...
3
1,281
Jquery custom function not positioning divs on ajax loaded content
<p>I have written a custom function that positions absolute divs inside a container calculating the top positions and heights:</p> <pre><code>$.fn.gridB = function() { var o = $(this); //EDITED from var o = $(this[0]); o.each(function() { var a1top = o.find('.article1').position().top; var a1he...
3
1,882
Program Output not showing
<p>I have this program, I've been working on it a while; I recently changed the programs layout to include two classes instead of just one, originally, I had all my code within the MainActivity class, now I have split the program between two classes, MainActvitiy and ReverseString.</p> <p>Since I've done this, the prog...
3
1,880
When I add the name attribute, the form action no longer works
<p>I would like the form, in addition to sending leads to the network with general_api, to save the data on a sheet. Without writing sheet data, the wf_general_api form action works fine. If I add &quot;name =&quot; on the form, it saves the sheet data correctly but the wf_general_api file no longer works.</p> <pre><co...
3
1,156
Navigation destination com.example.multimodulepoc:id/navigation_home is not a direct child of this NavGraph
<p>I'm trying to add navigation of multiple modules in the app using <strong></strong> tag I've provided my startDestination from <code>home</code> module. Its working fine when I've only one <code>&lt;include&gt;</code> tag with startDestination. App getting crash with following error message when I added multiple mo...
3
1,209
Creating folder based on one file and files in those folders based on another file using AWK
<p>I have a fairly complex sub-task of: <strong>creating folders/directories based on one file</strong> (<code>PF.csv</code>) <strong>and creating files based on another file</strong> (<code>FC.py</code>) <strong>in those directories.</strong></p> <p><strong>The two input files to be used</strong></p> <p><em>Contents...
3
1,609
How to play intro, that it's only played when app is installed, when a button is clicked?
<p>Before the user uses the app there is an intro that explains how the app is used. However I want to add a button to the homepage that ables the user to see the intro again. How should I do that? I already tried to call the class Intro in the class Homepage but nothing happens Here is the code of my Intro: </p> <pre...
3
1,896
MapViewOfFile returns ERROR_INVALID_PARAMETER Windows-10(Universal Windows Platform)
<p>I am trying to port my existing Windows desktop application (runs fine on Windows-7) to Windows-10 (Universal Windows Platform) <br>On Windows-10, MapViewOfFile returns </p> <blockquote> <p>ERROR_INVALID_PARAMETER</p> </blockquote> <p>,when I set access type to <code>FILE_MAP_READ | FILE_MAP_WRITE | FILE_MAP_EX...
3
1,042
Button border is still blue when clicked and timer refreshed ASP .NET
<p>I've got button array and every border color signalize some state (<strong>blue = active button; green = normal button, red = "fire"</strong>). Every button represents one sensor on hardware. </p> <p>Buttons are inside some UpdatePanel which has got Timer inside set on <strong>1500ms</strong> refresh. When the time...
3
1,213
JavaScript works if injected manually into the console but not automatically
<p>I made a script to check if the number of orders has changed by refreshing the page every few seconds so I can email my self if there's a new order . I used emailjs for the emailing part so I injected the <a href="https://www.emailjs.com/" rel="nofollow noreferrer">emailjs</a> library then sent the email , in the sa...
3
1,051
Cannot upload image using dio post request
<p>I am trying to upload a photo with caption to REST API. But since it is my first time, I am getting some exceptions. My code for uploading the image is shown below:</p> <pre><code>Dio dio = new Dio(); dio.options.headers['content-Type'] = 'multipart/form-data'; dio.options.headers['Authorization'] = 'To...
3
1,198
Pyqtgraph ImageView not updating after QSlider value changed
<p>I'm working on a PyQt5 + pyqtgraph user interface. The main idea is to have an image viewer that I can update using widgets from the Main Window, like sliders, line edits, buttons... By now I'm having trouble updating the image when I move the slicer. It connects to the expected functions, but the image on the Image...
3
2,022
Remove space between rows in GridView
<p>I know this has been asked in many different ways in StackOverflow but none of the answers seem to fit with my problem.</p> <p>As it can be seen in this picture (<a href="https://imgur.com/a/9MIlzwe" rel="nofollow noreferrer">https://imgur.com/a/9MIlzwe</a>), I get an ugly space at the bottom of the GridView becaus...
3
1,330
Dropdown List Not Working (copied template from Bootsnipp)
<p>I copied the template from <a href="https://bootsnipp.com/snippets/featured/search-panel-with-filters" rel="nofollow noreferrer">https://bootsnipp.com/snippets/featured/search-panel-with-filters</a> and edited to meet my need such that it looks something like this:</p> <pre><code>&lt;div class="container"&gt; &lt;d...
3
1,327
owl carousel 2 top value (element-style) always 24px
<p>I use owl carousel 2 on different pages. I used the same css and js everywhere. For some reason, when I load my page, the nav-buttons (prev and next) always get the inline-style top-value of 24px. I never declared a top-value of 24px anywhere in my js or CSS..</p> <p>This is my HTML:</p> <pre><code>&lt;div class="...
3
3,489
Android run time exception while using gestureImageView and ViewGroup
<p>Hi i am new to Android application. I want to add zooming effect to my image. I took a sample tutorial from [https://github.com/jasonpolites/gesture-imageview][1] and copied sample code from there. But when I was tried to run the java code in eclipse, an exception is raised. Codes are attached here.</p> <p>ViewInd...
3
1,762
Why 1.0 OAuth flow Twitter of a third app doesn't recognize that the user is already logged in?
<p>The authorization with OAuth1.0 sends me to a new authorization page, also from Twitter (<a href="https://twitter.com/i/flow/login?input_flow_data=%7B%22requested_variant%22%253A%22..." rel="nofollow noreferrer">https://twitter.com/i/flow/login?input_flow_data=%7B%22requested_variant%22%253A%22...</a>). Furthermore,...
3
1,052
Increasing the height isn't working in a <img> tag
<p><a href="https://i.stack.imgur.com/fxjXc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fxjXc.png" alt="enter image description here" /></a>I'm not knowing how to increase the height of vitaminpic, which is under container. I'm still new to development, and I know this seems like an amateur mista...
3
2,387
How to perform JDBC authentication with Scala's Slick library?
<h1>Intro</h1> <ul> <li>I have a microservice written in Akka HTTP which communicates with the frontend via an REST API.</li> <li>I use Scala's Slick library to communicate with the PostgreSQL DBMS.</li> <li>I want secure the API with HTTP's basic authentication mechanism (the frontend sends an username and password to...
3
1,118
How can I debug my Xamarin app when it only breaks in release mode?
<p>I recently discovered that when I ran my app on the android version in release mode my 'Specialty' drop down option field was empty with no options to change to. The problem is that it's hard to debug the issue because I can't step through my code and analyse variable values prior to the issue. I have searched for d...
3
2,071
How do I import a react component through a HTML script tag?
<p><em>So I'm creating a react component which will be deployed with UMD format and can be consumed from unpkg. It is built using webpack.</em></p> <p>Webpack config creating the UMD module with external modules:</p> <pre><code>module.exports = { plugins: [ new StyleLintPlugin(), new Clea...
3
2,055
Converting <br /> into <p> tag for standardize a text
<p>I have a HTML that is in various formats and I'm trying to standardize the code using PHP. In some cases I receive it using breaks <br> to separate lines. I need these to be <code>&lt;p&gt;</code> tags instead.</p> <p>1- For fist step I try to split the text by <code>&lt;br&gt;</code> and add it to new holder</p> ...
3
1,069
AWS EKS Fargate - Unable to mount EFS volume with statefulset
<p>I want to run a statefulSet in AWS EKS Fargate and attach a EFS volume with it, but I am getting errors in mounting a volume with pod. These are the error I am getting from describe pod.</p> <pre><code>QoS Class: BestEffort Node-Selectors: &lt;none&gt; Tolerations: node...
3
1,549
How to refactor a long function?
<p>I have a function that prepares a receipt output. But since it has all kinds of conditions it ends up being very long and difficult to understand..</p> <p>How would one go about refactoring this? Any ideas?</p> <p>If I split this into 100 small functions would that really be better?</p> <pre><code>public static func...
3
2,921
How do know target event in advance using jQuery
<p>I have a form having couple of <code>textAreas</code> and buttons there is event <code>focusout</code> handled for all <code>textAreas</code>. I am facing the problem as soon as <code>click</code> event fire on buttons when user done typing in any of <code>textareas</code> and click on save buttons only <code>focus...
3
1,400
MVC - My form is not passing my select dropdown's selected option
<p>I'm trying to post my dropdown values to my controller using an ajax post. All of the form values are passing just fine except for my dropdown select list. When I look at the select element using the browser's devtools it has the name <code>SortByList</code>.</p> <p><strong>Model</strong></p> <pre><code>public I...
3
1,645
ASP.NET C# can't retrieve info from programmatically added control in GridView tablecell
<p>Im working on a small project and im programmatically switching text in a gridview with a control.</p> <p>Here are the steps for the code:<br/></p> <pre><code>private GridViewRow EnterEditMode(GridView GV, int RowIndex) { GridViewRow GVR = GV.Rows[RowIndex]; foreach (TableCell TC in GVR.Cells) { ...
3
2,319
chartjs doesn't render dates properly
<p>I made a custom chartjs component in reactjs and want to render dates in xAxes and numbers from -1 to 1 in yAxes but it renders data not in a proper way. <a href="https://i.stack.imgur.com/Orp6n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Orp6n.png" alt="this is the output I get from the compo...
3
2,597
How to show hidden content in a printable version of a HTML page
<p>I want to convert an HTML table into pdf in javascript or jquery, but the table will have hidden rows in the HTML but I want these hidden rows appears also in the pdf.</p> <p>I was able to turn the table to pdf but the hidden rows aren't in the pdf. the table will show some rows in the HTML then the user goes to th...
3
1,889
MySql Event Scheduler Copy and Insert at Specific Time Every Day
<p>please I need the correct Syntax to Copy and Update A table everyday from another table's MAX row values using MySql's Event Scheduler. The tasks obviously exceeds my basic knowledge of MySql.</p> <p>This is what I have but its not working: </p> <pre><code>DELIMITER $$ CREATE EVENT IF NOT EXISTS `Statement_...
3
1,930
Receive an empty log file from FTP client while connecting to Azure - because log is "in use"
<p><strong>Problem is :</strong> </p> <pre><code>FTPClient client = new FTPClient(); </code></pre> <p>ofcourse i have all the connection details here and than : </p> <pre><code>InputStream inputStream = client.retrieveFileStream( file.getName()); System.out.println(client.getReplyString()); </code></pre> <p><strong...
3
1,036
Element no longer attached to the DOM and timeout exceptions
<p>I have written a full selenium script that's working but not all the time as whem I try to select meals (this is last sections of the page), I sometimes get two errors. </p> <p>One error is a timeout exception as it waits for a meal drop down to have an option selected, wait for it to be clickable again after it lo...
3
9,939
Meteor: insert produces multiple entries
<p>My Question is the following. </p> <p>I'm starting working with meteor and wrote some small code against meerkat. </p> <p>I'd like to insert the users into my database. I first have to call meerkat with the username for the meerkatId and then can get the user info. </p> <p>This is my code.</p> <p><div class="sni...
3
1,048
Why is survival::tmerge suddenly giving error "neither a tstop argument nor an initial event argument was found"?
<p>I'm trying to run the following code, including <em>survival::tmerge()</em> to conduct survival analysis with time-varying covariates, but i always get the error</p> <blockquote> <p>Error in tmerge(df.merge %&gt;% select(CODE98, id), df.long, id = CODE98, : neither a tstop argument nor an initial event argument was...
3
7,522
how to exit a bash script running tcpdump with error data
<p>I have the following bash script that takes tcpdump data and pipes it (eventually) to mysql to be written to a database. In case the script crashes, cron runs with piped output once a minute to check for the tcpdump process and restart it if necessary.</p> <pre><code>bash /usr/bin/uem_trap &gt;&gt;/var/log/uem.log 2...
3
3,820
PHP - Add a new element into each multidimensional array
<p>I have an array that looks like this:</p> <pre><code>Array ( [0] =&gt; stdClass Object ( [quiz_id] =&gt; 1033 [quiz_venue] =&gt; 6 [quiz_host] =&gt; 46 [quiz_golden_question] =&gt; 100 [quiz_golden_question_outcome] =&gt; 0 [quiz_run...
3
1,256
React useState hook updating inconsistently
<pre><code>function Blackjack() { const [deck, setDeck] = useState([]); const [playerHand, setPlayerHand] = useState([]); const [dealerHand, setDealerHand] = useState([]); function resetDeck() { const suits = [&quot;S&quot;, &quot;H&quot;, &quot;C&quot;, &quot;D&quot;]; const values = [ &quot;A&q...
3
1,053
CRUD operation in asp.net core MVC using kendo grid and stored procedures and dapper with the Repository pattern
<p>I am trying to do CRUD operation in asp.net core MVC, When I try to insert data into the grid(Create Function), VS turns me with an error that can not nut be null! I think the problem is UI does not send my inputs to the SQL or other things that I don't know! </p> <p>This is part of my controller with Create operat...
3
1,153
c# XmlSerialization collapse class to give particular value
<p>I'm working on some classes in c#. They need to be serialized to XML to match an existing schema, but I want to build the validation in the code. e.g. something like the below;</p> <pre><code>public class Address { public AddressLineType AddressLine1 {get;set;} public AddressLineType AddressLine2 {g...
3
1,105
error LNK1181 in cmake project with static/shared libs
<p>We are trying to port our cmake project <a href="http://slam6d.sourceforge.net/" rel="nofollow noreferrer">3DTK</a> to Windows but are running into multiple LNK1181 errors. Here is the specific error message of one of them. A full error log can be retrieved from the <a href="https://ci.appveyor.com/project/josch/3dt...
3
1,073
Get all data from a list WCF
<p>I pass a string to my WCF service like this</p> <pre><code>http://localhost:49854/Service1.svc/rest/getData/station_number=("31098","31508","31273") </code></pre> <p>My IService:</p> <pre><code>[OperationContract] [WebInvoke(Method = "*" ,ResponseFormat = WebMessageFormat.Json,RequestFormat = WebMessageFormat...
3
1,053
Search the table by cell content with jquery and relative referencing
<p>Having such table</p> <pre><code>&lt;table&gt; &lt;thead&gt; ... &lt;/thead&gt; &lt;tbody&gt; &lt;tr class="TableOdd"&gt; &lt;td class="TableCol0"&gt; 1 &lt;/td&gt; &lt;td class="TableCol1"&gt; x &lt;/td&gt; &lt;td class="TableCol2"&gt; x &lt;/td&gt; &lt;td class="TableCol3"&gt; # &lt;/td&gt; &l...
3
1,095