title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Javascript function works the first time it is called but never the second time or any other time after that
<p>The code below is the code that I am working with where I'm trying to create a collision system that I plan to use in multiple projects. But every time I try too create a second entity to test if the collision system works, it simply returns the following error.</p> <blockquote> <p>ncaught TypeError: entity is n...
3
1,848
django template display python dictionary on a bootstrap table
<p>I have a django view that returns this dictionary </p> <pre><code>args={'Residential': 'N/A', 'School': ('481 address', 600), 'Park': 'N/A', 'Religious': 'N/A', 'Childcare': ('123 address', 5)} </code></pre> <p>I have this code that correctly displays it on the HTML page</p> <pre><code>&lt;h5&gt;&lt;b&gt;Nearest ...
3
4,190
group directory files into sets VB.Net
<p>I am trying to populate 3 "Small images" into 1 large image. The images have been set in order. The problem is that in this case, the directory contains 10 "Small images". how can I load 10 images, separate them into groups of three, save my "large Image" and continue with the next three "small images"? </p> <p>UPD...
3
1,503
SQL FOR XML multilevel from one pivoted table - grouping data
<p>This is going further from the question posted here: <a href="https://stackoverflow.com/questions/23250367/sql-for-xml-multilevel-from-one-pivoted-table">link</a>. The solution proposed worked well, but now I have a harder scenario and the same solution is not applying since SQL is not allowing to create a third nes...
3
1,333
JSF 1 nests a new page into my main xhtml
<p>I have a question about JSF 1.2 + Richfaces 3.3. I have a web app which has some navigation rules and some ajax functions. In some point, I want the application make to open a new tab in the browser and show an xhtml page, after doing an action in server side. I have chosen the tag for that. That's how it looks:</p...
3
1,817
Express-Session any changes made to session variables are not saved across the routes
<p>This is a frequently asked question on stack overflow, I have checked many posts but that didn't work. I am attempting to make a login page, saving the User_id (after successful login) in the session variable then using that variable to check whether a user is logged in or not. The later part i am trying to implemen...
3
1,088
How to query JSONB field with IN operator in rails - active record
<p>I have a jsonb column called <code>lms_data</code> with a hash data-structure inside. I am trying to find elements that match an array of ids. This query works and returns the correct result :</p> <pre><code>CoursesProgram .joins(:course) .where(program_id: 12) .where( &quot;courses.lms_data-&gt;&gt;'_id' IN ('604d2...
3
1,026
Cannot serialize XML from an API response. System.InvalidOperationException: 'There is an error in XML document (1, 2).'
<p>I am currently doing a project related to a formula 1 API but sadly I cannot figure out how to serialize my xml content into an object.</p> <p>The XML I am trying to serialize : <a href="https://pastebin.com/nkt9EA1k" rel="nofollow noreferrer">https://pastebin.com/nkt9EA1k</a></p> <p>My API request and the attempt t...
3
1,160
How to submit data from an Angular2 form (along with image) to PHP using formdata method?
<p>The form has text input and file-input. I studied the tutorial from <a href="https://nehalist.io/uploading-files-in-angular2/" rel="nofollow noreferrer">here</a>.</p> <p>This is my <strong>add.component.ts</strong> file:-</p> <pre><code>import { AdminPage } from '../../../_models/admin.page.model'; import { AdminP...
3
2,557
What is going wrong on this line of code? (React, Game Of Life)
<p>there is an error which I don't understand. When I press <code>&lt;button&gt;50x70&lt;/button&gt;</code> and press <code>&lt;button&gt;run&lt;/button&gt;</code>I get this error. I can't see why, since it works with the standard 50x50 board. </p> <p>Why is this line of code causing an error? <code>neighbors+=board[x...
3
2,206
Android - PullToRefresh ClassCastException
<p>Please bear with me on this one; since, I'm a newbie in Android/Java.</p> <p>I use PullToRefresh library (from Chrisbanes) and having a LoadMoreGridView for my Android app. When I run the app, I encounter ClassCassException:</p> <pre><code>java.lang.ClassCastException: com.handmark.pulltorefresh.library.PullToRefr...
3
3,722
JavaMail Gmail issue. "Ready to start TLS" then fails
<pre><code> mailServerProperties = System.getProperties(); mailServerProperties.put("mail.smtp.port", "587"); mailServerProperties.put("mail.smtp.auth", "true"); mailServerProperties.put("mail.smtp.ssl.trust", "*"); mailServerProperties.put("mail.smtp.starttls.enable", "true"); mailServerProperti...
3
1,409
Snake animation
<p>I got a homework for my coding class and im not sure how to do it. I am supposed to make an animation that would light up the squares in a sort of snake type animation (it starts in top left square, continues to top right, then goes to second line but instead of starting on right side, it starts on left side). How s...
3
2,126
LocationManager not displaying location in GoogleMap
<p>I am trying to build my first android app that tracks the users location. I am trying to achieve this with the following java code in my Maps Activity Class:</p> <pre><code>public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; LocationManager locationManager; @...
3
1,996
How to produce a deeplink action from a web redirection
<p>I have php file which looks for <code>userAgent</code> string to reply with the correct <code>Intent</code> to start my application.</p> <p>The php file is:</p> <pre><code>&lt;SCRIPT language=javascript&gt; function redirectOnUserAgent() { var params = {}; if (location.search) { v...
3
1,901
Issue with `display:inline-block` CSS property
<p>I have made recently one answer to another user about a generic method for <a href="http://api.jquery.com/slideup/" rel="nofollow noreferrer">JQuery::slideUp()</a> sequentially multiple items. If you want a reference, you can check it here:</p> <p><a href="https://stackoverflow.com/questions/54639862/slide-up-eleme...
3
1,347
Unable to modify layer-list elements programatically in older APIs
<p>Following android code creates a <code>TextView</code> with a filled-circle background. When it is clicked a circle is created around it. If it is clicked again then the circle goes away. This works fine in API 19 but not in API 8 or 10. In those older APIs no circular boundary is drawn upon clicking. What is matter...
3
1,535
ASP Web Forms : Text box is retaining old values in post back
<p>I have 2 <code>text boxes</code> with <code>compare validator</code> controls . But at postback ,the <code>textbox</code> values are appended by comma. And on edit mode new value is appended by comma followed by previous value. </p> <p>Create Mode <a href="https://i.stack.imgur.com/j2F6n.jpg" rel="nofollow"><img sr...
3
2,310
Java - Loop performance drop
<p>The scenario goes as such...</p> <p>I have two functions Function A() and Function B(). The Function A() has a for-loop which calls Function B() in every iteration. Function B() has a for-loop which iterates around 10 million times. </p> <pre><code>Function A() { for (i = 0; i &lt; 10; i++) Function B(...
3
4,147
png image copied to another image php
<p>I'm trying to add a png image onto another image. The only problem I have is that the png image is creating a transparent background around it instead of having the background of the other image.</p> <p>Here's the image:</p> <p><img src="https://i.stack.imgur.com/6Ro5m.png" alt="enter image description here"></p> ...
3
1,057
Assigning a value from a user input textbox to another form
<p>I'm new to C# and I'm trying to create a login that passes information to the other forms of the program. Below is my LoginForm.cs, I'm trying to get the userID that was inputted to the txtUserID.text and pass it on to another class. I've already tried creating a global variable but nothing happened.</p> <pre><code>...
3
1,695
Off By One Error within a loop?
<p>So I have an off-by-one error in my while loop within my client code - for some reason the code executes 11 times when it should execute 10 (even though it doesn't actually print out the 11th item). I'm not sure where the error lies (I've even printed out the condition test and it increments properly, it just asks ...
3
2,950
Failed to save snapshot by rhc
<p>every time I run <code>rhc snapshot save wp1 </code> got this</p> <pre> <code> Pulling down a snapshot to wp1.tar.gz... Saving snapshot for secondary mysql-5.5 gear /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.21.6/lib/openshift- origin-node/model/v2_cart_model.rb:1313...
3
3,080
jquery validator form: how to access form action, after the completion of a remote email validation
<p><strong>History:</strong> I started this issue off previously in <a href="https://stackoverflow.com/questions/31966294/form-post-is-omitted-after-jquery-validation-is-completed">this thread</a>. I spent sometime trying to get the remote validation working so I refused to believe that was what was causing me grief.</...
3
2,567
Why am I getting an the following error? "Error putting S3 policy: MalformedPolicy: Policy has invalid action"
<p>I'm following the guide <a href="https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html" rel="nofollow noreferrer">here</a> to allow writing logs to s3.</p> <p>&quot;Use the following access policy to enable Kinesis Data Firehose to access your S3 bucket and AWS KMS key. If you don't own the S3 buck...
3
2,040
How to make the top-border of a double-border styled element invisible using FullCalendar's styling
<pre><code> isRTL: false, firstDay: 1, monthNames: ['Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December'], monthNamesShort: ['Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','Decem...
3
2,873
How to rewrite this sub with a loop for i=1 to 12 and while 'txt_Case_Number(i).Text' has a value?
<p>I've created a search userform that needs to show records under a search of a case number that could have partial duplicate info. Then I make a change to that record and update the sheet with the new info. Something like this is what I am trying to do:</p> <pre><code>While i = 1 to 12 .Cells(RowFound(i), "A") =...
3
1,213
Macbook crashes when compiling app
<p>When compiling my project the compiler gets stuck on this class, after about 5 minutes of attempting to build I get a message telling me I'm out of system memory and to close some apps to continue. Is there something in this code which could cause the compiler to crash?</p> <p>I'm using XCode9, seeing as my entire ...
3
2,877
Rails paperclip crop save ratio
<p>How to save ratio while crop image?</p> <p>I use paperclip and my image style <code>blog_article_main</code> is 940x400x it works ok.</p> <p>But while i crop an image ratio is changed.</p> <p>my cropper </p> <pre><code>module Paperclip class Cropper &lt; Thumbnail def transformation_command if crop_...
3
1,100
How to return data from custom function which uses bottom sheet in flutter
<p>I made a custom function which opens modal bottom sheet in flutter. Now, I want to get some data back from the sheet to my previous page. How should I do it? I tried to make function's return type as <code>Future&lt;FilterDataModel&gt;</code> and Future, but it's not working. I want that whenever the user clicks on ...
3
3,018
Why is the average for my array of numbers not correct?
<p>I have written a method to take an array (via pointer) and its size to calculate the average. I am still relatively new to pointers. I have tried to remove the reference operator all throughout the code to the point at which it will compile, but the values returning are not intended. For instance, if I pass in an ar...
3
1,159
OpenGL crashes at glTexImage2D(...)
<p>I wrote an image viewer in OpenGL (+GLEW and GLFW) to learn how to handle textures etc. but the program keeps crashing when I feed it certain jpeg files (most of them work). I tried using SOIL, libjpeg and jpgd, but it crashes anyway so it's not the decompressor's fault.</p> <p>I checked (using output_* jpg decompr...
3
5,621
Google Maps v2 not showing on API 19 but showing on API 24
<p>Hello I have a Problem with my App. I use Google Maps v2 in it and it Works fine with my Phone and on the Emulator with API 24. But on Emulator and Devices with lower API levels it schaws not the map. </p> <p><a href="https://i.stack.imgur.com/OtxLs.png" rel="nofollow noreferrer">here works everything fine</a></p> ...
3
1,041
listbox not showing all items windows phone 8.1
<p>I'm trying to populate a listbox using binding in windows phone 8.1. I can't see all of the items in the control.</p> <p>XAML:</p> <pre><code>&lt;Grid x:Name="LayoutRoot"&gt; &lt;Grid.ChildrenTransitions&gt; &lt;TransitionCollection&gt; &lt;EntranceThemeTransition/&gt; &lt;/Transiti...
3
1,132
WPF DataGrid: Reordering and Editing Rows with GongSolutions.WPF.DragDrop
<p>I'm using GongSolutions.WPF.DragDrop. What I want is to load a List into a DataGrid, be able to add rows, delete rows, edit rows, and drag drop reorder rows. Then read every item from the list in the new order back into a database.</p> <p>When I give an item source to a DataGrid, I can't drag drop reorder the rows.<...
3
1,991
ActiveMQ consume/forward messages from another ActiveMQ instance
<p>I have two brokers A and B. If I want to forward message from A to B everything is simple. I just need network connector in A broker configured like this:</p> <pre class="lang-xml prettyprint-override"><code>&lt;networkConnectors&gt; &lt;networkConnector staticBridge=&quot;true&quot; userName=&quot;user&quot; pa...
3
1,308
Sending requests to rest webServices from swagger ends to 401 and unauthorized
<p>I am new in this project and I got a task to add some services to the project. First I created a package <code>NCDM</code> beside other Rest packages and created my class <code>NCDMMemberController</code>:</p> <pre><code> package ir.anarestan.ipc.controller.NCDM; import ir.anarestan.ipc.controller.helper.NC...
3
1,153
I am having a problem displaying a image in OpenGL
<p>I do not fully understand the concept of binding textures in OpenGL, I can't get this to render a jpg image for my project, any insight to what I may be doing wrong?</p> <pre class="lang-cpp prettyprint-override"><code>// Shader sources const GLchar* vertexShaderSource = R"glsl( #version 150 core in vec2 position; ...
3
3,092
How to inject one file into another with Maven?
<p>I have two files in my src/main/resources and I want one file's body to be injected into specific place of another file. So one file should be a template and another file will the data to fill this template (something like in Apache Velocity).</p> <p>Can I do this with some existing Maven plugin?</p> <p>Thank you ...
3
1,532
xpath question on selecting node set
<p>Here is a simplified version of my source xml document:</p> <pre><code>&lt;eml&gt; &lt;additionalMetadata&gt; &lt;describes&gt;sbclter.380&lt;/describes&gt; &lt;access authSystem="knb" order="denyFirst"&gt; &lt;allow&gt; &lt;principal&gt;public&lt;/principal&gt; &lt;permission&gt;all&...
3
1,899
spark-submit on local Hadoop-Yarn setup, fails with Stdout path must be absolute error
<p>I have installed the latest Hadoop and Spark versions on my Windows machine. I am trying to launch one of the provided examples but it fails and I have no idea what the diagnostic means. It seems it's related to the stdout but I can't figure out the root cause.</p> <p>I launch the following command:</p> <pre class="...
3
1,386
Error [ERR_HTTP_HEADERS_SENT] after change in database
<p>I want to check in Firestore database if user paid or not. so everytime i go to the <code>/paid</code> route i check in databse if he paid or not. but if he requests the route and let's say he didn't pay. and the i change the database so that he did pay then i get the error</p> <p>i tried checking if i had sent hea...
3
1,361
Json Deserialize Array C#
<p>I'm trying use json to get weather information from climatempo api, but I'm getting this error bellow, because one of the items is an array, I've tryed to change from: </p> <pre><code>public static ClimaTempo15 FromJson(string json) =&gt; JsonConvert.DeserializeObject&lt;ClimaTempo15&gt;(json, NewWeatherImage15.C...
3
4,085
Multiprocessing Pool: operation timed out
<p>I have this piece of code:</p> <pre><code>import urllib2, json, csv import requests import itertools import multiprocessing import numpy from datetime import datetime, date, timedelta def getTaxiTrips(date): """ Gets the taxi trips occurred in NY from a starting date. :param date: (Y-m-d). :return:...
3
2,498
System.AccessViolationException while compressing JPEG using jpeglib
<p>I'm rather new with jpeglib. I encounter the following problem. I have to save a rgb raster to a jpeg file. The code :</p> <pre><code>typedef struct JpegErrorManager { struct jpeg_error_mgr pub; jmp_buf setjmp_buffer; //callback } JpegErrorManager; void JpegErrorExit(j_common_ptr cinfo) { /* cinfo-&gt;...
3
1,285
Edit the innerhtml of a <li> to add an <i> tag with icon image
<p>I have created a custom helper for tracking the current menu item in my MVC application and would now like to replace the icons I was using before the change and set the relevant href. Previously my list items looked like this:</p> <pre><code>&lt;li&gt;&lt;a href="@Url.Action("Index", "Admin")"&gt;&lt;i class="icon...
3
1,085
playn not playing with mvn, ironically
<p>Trying to run the basic examples given by playn, wanting to have a go with the toolkit. I'm following the instructions as given here: <a href="http://code.google.com/p/playn/wiki/GettingStarted" rel="nofollow">http://code.google.com/p/playn/wiki/GettingStarted</a></p> <p>However, after doing a clone and running mvn...
3
1,475
How to prevent Thymeleaf Template Engine read path URL Get Mapping as a template engine name in Spring Boot
<p>I have a controller get mapping which read path variable to return object from repository, and return template engine name using Thymeleaf to show it, and it works well in localhost with postman and browser:</p> <pre><code>@Controller public class InvoiceFormController { @Autowired InvoiceDetailRepository invoi...
3
1,132
Search Results segue to other View controller in swift
<p>I am implementing search controller programatically on navigation bar it is working fine and showing result, if I can select the tableview cell(did select method) segue is working fine . when I select the searched result it is not segue to next view controller. It is showing same view controller and tableview is rel...
3
1,104
Assign ID for Road segment ( Latitude longitude) in R Code
<p>I want your ideas and suggestion in handling the following dataset:</p> <pre><code> Start_Latitude Start_Longitude End_Latitude End_Longitude Date Avg_Speed 41.92446 -87.68654 41.93184 -87.67459 2020-06-11 6:00 40 41.90367 -87.63233 41.9160...
3
1,043
Tomcat SAOP web services unavailable sometimes (on burst parallel calls)
<p>I am using Apache Tomcat Version 7.0.47 and have deployed some web application with exposed SOAP web service.</p> <p>Exposed WSDL is like http://IP:4010/guiding/rr?wsdl</p> <p>I am accessing this WSDL from client, and in some cases there are some burst parallel access, as shown bellow:</p> <pre><code>192.168.80.73 -...
3
2,776
Need to restrict clone max10 in mobile device using jquery
<p>Working on Jquery clone where in large device like desktop and tablet user can clone more but in mobile I have to restrict user to clone 10. Is this possible to restrict user to clone</p> <p>Here is the jquery code</p> <pre><code> var i = 1; $(document).on("click", ".btn_more", function () { $(".cloned-row...
3
2,403
Retrieve Alias From SharedMailbox
<p>I would like to retrieve the alias email that would have been emailed to a Shared Mailbox but Exchange overrides the "To recipient" with the Primary email address of the shared mailbox</p> <p>Example - "aa@alias.co.uk" Alias is emailed on the shared mailbox. I would like to retrieve the "aa@alias.co.uk" email</p> ...
3
1,193
Submit Braintree Sale via Ajax Rails
<p>This may not be possible and I may be misunderstanding the api but i was looking to submit my Braintree payment via Ajax in Rails 4.</p> <p>I've got a simple form setup (omitted fields to keep it small) and it is setup to fail in this instance so that i can show an error message</p> <pre><code>&lt;%= form_tag tran...
3
1,360
php lost $_SESSION value after click other site
<p>I have a method, in which I (twice) access this value:</p> <pre><code>$_SESSION['loggedinUser']; </code></pre> <p>The first time it works fine, but the second time the value has been lost.</p> <pre><code> public function View($view, $model) { if (! isset($_POST['regist']) &amp;&amp; ! isset($_POST...
3
1,104
How to add a summary column to a gt table that is a function of two other summary columns?
<p>I am using gt to show two columns representing values at specific points in time, and a third column that shows a percent change, which was calculated in preprocessing. I would like a summary row that contains the sum of the values in each column, and the percent change between those sums beneath the column of perce...
3
8,312
Error of not being able to look at the website I am creating
<p>so I am a beginner coder, who is using firebase to create a code that would allow me to send data that is continuously created to a self-created website. So far, I have managed to create a cloud function that allows me to do so. I am now working on the website that would allow me to send the necessary data to that w...
3
1,997
NestJS JwtModule.registerAsync() gives undefined at imports
<p>when I nest start the code, it gives follow error, what is the problem?</p> <p>I set ConfigModule as Gloabl, so I shouldn't need to import.</p> <p>If I missed any code, please tell me, I can post it here.</p> <p>I reference usage in <a href="https://github.com/nestjs/jwt" rel="nofollow noreferrer">NestJS Jwt package...
3
1,603
nodejs express + create-react-app oauth2.0 error 401 'Invalid access token' Spotify API
<p>I'm trying to build an app that allows me to call Spotify's API from a <code>create-react-app</code> client through a <code>nodejs express</code> server. I'm trying to use the <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow" rel="nofollow noreferrer">A...
3
1,607
Is this query non compatible with php? It there a glaringly obvious syntax error because I can't get it to run
<p>So, I am currently making a dashboard for my boss, displaying data from a logistics perspective, he has sent me his own MS Access query, for the life of my I cannot make it run, in an attempt to make a table our worker can view from the data it should be pulling. Is anything glaringly wrong with it?</p> <p>I'm just...
3
1,502
Tkinter - Get Entry text on double click (for loop)
<p>I'm making a program which gets database records with the PyMySQL module and then I want to display those records in Tkinter Entries. I already have the code to do that, but I want to add a functionality.</p> <p>I want to give the user the functionality to <strong>doubleclick</strong> on an Entry of a row and get a...
3
1,513
Post parameter to PHP file
<p>I have a code snippet which helps me to get data from my mySQL database. It also works fine ! But now I want to add parameters for my sql query because until now this code only works for this :</p> <blockquote> <p>mysql_query("SELECT * FROM tablename ORDER BY 5 DESC");</p> </blockquote> <p>So everything is being...
3
1,211
Wordpress shortcode displays widget but not content
<p>I am trying to create a shortcode that will display a current widget and it's contents. It seems to function perfectly fine for wordpress default widgets, however when it comes to my custom widgets it does not work. Any ideas on how to fix it?</p> <p>Shortcode (I believe the issue stands with $widget_id not working...
3
2,204
Unable to find module 'server', added express to Ember-Cli app
<p>I've added an expressJS app inside my ember app so I can provide a backend API for my ember app. </p> <p><strong>My process:</strong> </p> <pre><code>npm install express --save </code></pre> <p>I created a folder called "server" in the route of my ember application and inside that a file called "server.js".</p> ...
3
1,131
How to use Backbone.StateManager?
<p>I am trying to explore Backbone.StateManager but couldn't find much material on this. I have gone through <a href="https://github.com/crashlytics/backbone.statemanager" rel="nofollow">the documentation</a> but there is no simple example of using it. </p> <p>I have made an example like this</p> <pre><code>(functio...
3
1,235
Different behaviors depending on architecture
<p>It seems I have encountered a possible bug in libc. I have the following code:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;pthread.h&gt; #include &lt;unistd.h&gt; struct bla { int a,b,c,d; }; pthread_t tid; void print (const char *s, const struct bla *fp); void * thr_fn1 (...
3
1,679
Pass value from parent to child component with React
<p>I trying to display the rating of a query in my React App. But I'm not sure if I understand how to handle the state.</p> <p>This is my query component:</p> <pre><code>import React, { Component, useRef, useState, useEffect } from 'react'; import { render } from 'react-dom'; import InputSearchLandlord from './search' ...
3
1,852
How to retrieve an array inside a node in mongoDB using node.js?
<p>I have a mongoDB collection called 'users'. Inside the 'users' collection there are several users. Each user has an array called Cart and there are items inside the cart like this,</p> <p><a href="https://i.stack.imgur.com/izgj3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/izgj3.png" alt="ente...
3
1,455
Padding affects container size?
<p>See the following Codepen sample: <a href="https://codepen.io/anon/pen/yWXRvR" rel="nofollow noreferrer">https://codepen.io/anon/pen/yWXRvR</a></p> <p>Concerning the <em>tourplaces</em> container at the bottom of the page (see CSS section commented as <em>Article: tour dates: tourplaces</em> at the bottom of the CS...
3
4,416
How to convert Oracle database to UTF-8 to insert into Mysql
<p>I need to convert database from Oracle into UTF-8 to insert into Mysql.</p> <p>The "é" are "?"</p> <p>All my Mysql are into UTF-8 general-ci</p> <p>The database is already good shown on the website but when i import it from oracle i can't because of the "'" or "é", "à"...</p> <pre><code>&lt;?php if (isset ( $_PO...
3
2,037
Trouble with HTTP POS REQUEST HASH KEY
<p>i'm trying to connect to payment gateway and i have this form below to be sent as http post:</p> <pre><code>&lt;form name="submit2gtpay_form" action="" target="_self" method="post"&gt; &lt;input type="hidden" name="gtpay_mert_id" value="17" /&gt; &lt;input type="hidden" name="gtpay_tranx_id" value="" /&gt; ...
3
1,367
Is this a Module, Sub-Project, Library Project or something else?
<p>I am trying to install Android-GPU-Image in my project. <a href="https://github.com/CyberAgent/android-gpuimage" rel="nofollow noreferrer">https://github.com/CyberAgent/android-gpuimage</a></p> <p>When I download the source, it's broken down as such:</p> <p><img src="https://i.stack.imgur.com/ZgXUD.png" alt="enter...
3
1,682
Why when upgrading to Node.js 16.13.0 (with its nmp 8) I can't stop sass error output?
<p>As a result of upgrading to Node.js 16.13.0 with its nmp 8 I ran into a problem with Sass. I had to update gulp-sass to version 5.0.0, additionally install sass@1.43.4 and fix in gulpfile.js the sass require as <code>sass = require('gulp-sass')(require('sass'))</code>.</p> <p>So Sass got finally up and running with ...
3
1,031
R Ggplot2: Draw lines between unrelated points
<p>I want to draw a line between some unrelated points.</p> <p>This is my code now:</p> <pre><code>probpostest %&gt;% filter(prev==15) %&gt;% mutate( stat=replace(stat,stat==&quot;prevalencia&quot;,&quot;Prevalencia&quot;), stat=replace(stat,stat==&quot;probpostestpositivo&quot;,&quot;Probabilidad\nPostest...
3
4,330
releasing objects?
<p>I'm really new to iPhone programming.</p> <p>This app is a simple quiz. FirstAppDelegate.m creates an instance of QuizViewController and adds its view to the window.</p> <pre><code>#import "FirstAppDelegate.h" #import "ResultViewController.h" #import "QuizViewController.h" @implementation FirstAppDelegate @synth...
3
1,242
Removing array [0] in SESSION array error
<p>As a novice in this and I'm struggling with a small project. I’m putting together a page for INTERNAL orders in a small MTB club. My problem is if there are more than 1 order in the $_SESSION['cart'] and I try to remove the first one [0], then I get “Undefined offset: 0”. I get that is to do with that I remove the ...
3
2,795
Hadoop: each namenode and datanode only last for a momentary time
<p>Using CentOs 5.4</p> <p>Three virtual machines(using vmware workstation):<strong>master</strong>, <strong>slave1</strong>, <strong>slave2</strong>. <strong>master</strong> is used for the namenode, and <strong>slave1 slave2</strong> are used for the datanodes. </p> <p>Hadoop version is <strong>hadoop-0.20.1.tar.gz...
3
1,661
Android - setting a listener on items in each row of ExpandableListView
<p>On each row i have two EditTexts.when i change the first one , i want the other to be changed as well(if needed ,for now just setting there '25' for testing).I am using a viewholder pattern,and setting on each of the first edittexts a TextChangedListener,expecting the second to be changed as well .problem is , whene...
3
2,285
Opencv Image Overlaying to ROI Java
<p>I am trying to overlay an image inside the rectangular region after detection of face and eyes. But I am unable to do so. Can you please guide me how to proceed. I have searched a lot on google and tried Mat copy to src file but no result. Please help me in solving this issue.</p> <pre><code>public class FXControll...
3
3,334
Directly write ADTG file to into MS Access table
<p>This is the code I used to import MSSQLdatas. VBA generates complex and long query with unions, joins and any more. There create links to MSSQL tables not possible, because there SQL server and MS-ACCESS are different machines and connection only via RDP.<br> This code generates Recordset and saves her to DROPBOX i...
3
1,047
PROBLEM WITH ELECTRON AND SQLITE3 INSTALL
<p>I am trying to install electron in my project, but it seems that there is a conflict with sqlite3 and I have not been able to solve it. Here is the log. I trying this:</p> <p>"scripts": { "postinstall": "install-app-deps" ... }</p> <p>npm install --save-dev electron-builder npm install --save sqlite3 npm run...
3
2,738
scoped_allocator_adaptor seems to require allocator to be default constructed
<p>In my experiments with scoped_allocator_adaptor, I'm trying to pass the allocator obtained from main(..) into S1's constructor (more generally there would be multiple different types within S1 that would all use the allocator that was made available in the constructor). However, I get the compile error below indicat...
3
2,390
JSON.stringify to PHP Issues
<p>I'm trying to get information from a form on HTML using Javascript, convert it to a JSON string and then send it to a PHP server to post, however, I'm running into the issue of receiving the data.</p> <p>When the return value in the function addEmployee() is false, the PHP can grab the information but does not updat...
3
2,237
Flutter: Text.rich widget is revers the WidgetSpan if you add arabic text
<p><a href="https://i.stack.imgur.com/ZM17o.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZM17o.jpg" alt="the green container is should be in the red and there is in the green." /></a>please can any one help me? Text.rich widget does not work successfully with arabic text. there are a problem with ...
3
1,063
Can not set up Xdebug for any IDE using Laradock + PHP 7.2 + PhpStorm/VSCode + Xdebug 2.9.8/Xdebug 3.0.3 working with Laravel project from WSL
<p>I have a big issue for setting up Xdebug in my Laravel project + Laradock. I have tried with PhpStorm and also with VSCode.</p> <p>I also have tried using Xdebug 3, writing the same settings on both xdebug.ini but with the new Xdebug3 sentences.</p> <p>Maybe should I have to set up something else inside WSL ?</p> <p...
3
2,720
Is there away to send Json Data from a form with Angular 8
<p>I want to send Json data from my model variable that has all my form bindings. When I use postman the requests go through but when I do it in angular it doesn't work. I have no idea what I am doing so that it doesn't send my post request properly but I can't get it to format correctly.I keep on getting a observable ...
3
3,894
Percona connection fails after timeout
<p>We have multimodule project with database, and sometimes we recieve this exception:</p> <pre><code>org.springframework.dao.DataAccessResourceFailureException: PreparedStatementCallback; SQL [SELECT data FROM table]; No operations allowed after connection closed.; nested exception is com.mysql.jdbc.exceptions.jdbc4....
3
1,121
"source_files must be set" coveralls php
<p>I am trying to setup coveralls with Travis and I have a <code>source_files must be set</code> error </p> <pre><code>$ php coveralls.phar -v Load coverage clover log: - /home/travis/build/Toolwatchapp/tw-backend/application/tests/build/logs/clover.xml Collect git info Read environment variables source_files must b...
3
1,399
How to slide a DIV on link click
<p>I have the following HTML:</p> <pre><code>&lt;div id="trt" style="position: relative; height: 40px;"&gt; &lt;a href="#" style="text-align: center" class="a_demo_three third_button"&gt; M E N U &lt;/a&gt; &lt;/div&gt; &lt;div id="tst" style="position: relative; height: 200px; width: 200px; background...
3
2,977
403 Forbidden from bitcoind -server run on docker
<p>I'm using the new Docker-for-Mac to run the daemon like this:</p> <pre><code>$docker run -d --name bitcoind -e BITCOIN_DATA=/data \ -v ${PWD}/bitcoind:/data -p 8332:8332 seegno/bitcoind:latest \ -server -rpcuser=test -rpcpassword=nopass -rpcallowip=192.168.1.67 \ -printtoconsole -debug=rpc </code></pre>...
3
1,267
React + Backbone nested components
<p>I've recently started using reactjs with backbone. I searched and found <a href="https://stackoverflow.com/users/458193/dan-abramov">Dan Abramov</a>'s answer <a href="https://stackoverflow.com/questions/21709905/can-i-avoid-forceupdate-when-using-react-with-backbone#answer-21709906">here</a>. I've been using his mix...
3
2,762
show images with grid view in flutter
<p>I tried to use StaggeredGridView but it wont load anything on my page, not even just text. I haven't put images URLs yet cuz I want to test it out.</p> <p>So far this is my code below:</p> <pre><code> body: ListView( children: [ Container( width: deviceSize.width, he...
3
1,436
Flutter Firebase Auth: Hangs in Android emulator, works everywhere else
<p>I'm running Flutter 1.22.4 on the stable channel on Mac OS X 10.15.7. I'm using Flutter Authentiction: <code>firebase_core: 0.5.2+1</code> and <code>firebase_auth: 0.18.3+1</code>.</p> <p>My Flutter application has a sign-in screen for an email address and password. Here's the code that uses Firebase Auth:</p> <pre>...
3
1,138
Jenkins scripted pipeline environment variable
<p>I'm using the Jenkins scripted pipeline and since the last update I get a new warning, which I want to silence, here is an MWE:</p> <pre><code>// FROM https://jenkins.io/doc/pipeline/examples/#parallel-multiple-nodes def labels = [] if (Host == 'true') { labels.add('&lt;host-slavename&gt;') } def builders = [...
3
1,076
React function executes continuously and state keeps refreshing
<p>I have kind of a weird issue in React. I am using the Blitz JS framework along side with Prisma for database stuff.</p> <p>I have a function that queries the database for all entries from a date the user selects forward. It's used for a reservation system that I am trying to build.</p> <p>After I get the data I use ...
3
9,070
Ajax post method works with problem, in asp.net core project
<p>I have a code in asp.net core, that it reads all rows from &quot;Color&quot; table of database (in SQL server) and Shows this data in a data table. Above this table, There is a button after clicking, an accordion opens and shows a form that can insert a new row to below table.</p> <p>I have a controller called &quot...
3
3,817
Compilation problem with std::async using g++8 and c++20
<p>I am trying to use <code>std::async</code>. I have written this code</p> <pre><code>template&lt;transport_type tt&gt; void stop_update_distances(const std::vector&lt;stop&gt;&amp; stops, stop&amp; from, const general_s&amp; s, const osrm_machine&amp; machine){ //...not important code... } void tt_map::update_dista...
3
2,051
Tensorflow server always bound to localhost
<p>clusterspec.json</p> <pre><code>{ "worker": [ "192.168.190.5:2222" , "192.168.190.6:2222" , "192.168.190.8:2222" ] ,"master": [ "192.168.190.9:2222" ] } </code></pre> <p>worker.py</p> <pre><code>import json import tensorflow as tf with open('clusterspec.json', 'r') as f: clusterspec = json.load(f) clust...
3
1,188
Order Vyatta and Netscaler VPX with Java
<p>I trying to implement Netscaler and Vyatta Order in java. When I call Verify API in java, the following errors have been returned. The tested code also attached below. please recommend me if there is any missing configuration.</p> <p>Netscaler : "error":"Order is missing the following category: NetScaler VPX. Vya...
3
1,340
Different style for menu list items
<p>I have the following sidebar menu: </p> <pre><code>&lt;div id="sidebar-wrapper" style="margin-right:-2%"&gt; &lt;ul class="sidebar-nav"&gt; &lt;li class="sidebar-brand"&gt; &lt;a href="#"&gt; foo &lt;/a&gt; &lt;/li&gt; &...
3
1,061