title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Can't install Puppet modules, '302 Found', Win 8.1 64 running Ubuntu trusty 64 in Vagrant 1.8.4
<p>I'm trying to <code>vagrant up</code> successfully, but I always end up with ah SSH non-zero exit status. The real error I'm having is that <strong>puppet won't install any modules</strong>. It starts by trying to install stdlib, and fails there, and never recovers.</p> <p>Here is the relevant part of a verbose er...
3
2,031
IOS SWIFT PARSE : Pfcloud.callFunction
<p>i have an old app in objective C using cloudcode to send pushes to back4app platform. </p> <p>The app manage to send correctly the pushes and this is the code :</p> <pre><code>- (IBAction)inviaPush:(UIButton *)sender { NSString *canale; for (int i=0; i&lt;=4; i++) { switch (i) { case 0:cana...
3
1,662
gradle build of android project using hidden apis: fails in some build environments and succeeds in others
<p>I have an android project that uses some hidden API (e plan to fix this in future but not now).</p> <p>The same master branch of the project's git repo builds fine is some build environments but gives compile errors in some build environment on the lines of code that use the hidden api.</p> <p>The command I use in...
3
1,981
DataTables Ajax Error in django
<p>I am doing some server-side ajax loading in django.</p> <p>Here is my code clip:</p> <pre><code>@login_required def cmdb_list_page_server_side(request): #do not prepare data in view (as in above view), data will be retrieved using ajax call (see get_countries_list below). return render_to_response('cmdb/list....
3
9,486
radio button check selection change event in jquery
<p>this is my html</p> <pre><code> &lt;div id="options_div"&gt; &lt;input name="Names" type="radio" class="VoteAns" id="VoteAns_269_1" value="Values" contenteditable="false"/&gt; &lt;label id="VoteAns_269_1_lbl" contenteditable="true"&gt;6 : 00 PM&lt;/label&gt; &lt;label id="VoteAnsOP_269_1"&gt;&...
3
1,317
call paintevent on my own in other class in qt c++
<p>I am new to qt and am doing a Red black tree visualization using qt c++. i have created node structure using Qpaint and im ready with basic data structure tree code, the only problem is the updation of paint event coz i want to call paint event whenever I want too.</p> <p>and also while painting my initial nodes ar...
3
1,631
"Use Theme.AppCompat theme with this activity" Exception
<p>I used recently Android Asset Studio to generate a custom Action bar theme for an app and when I placed everything in my project the app crashes with this exception:</p> <blockquote> <p>java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.</p> </blockquote> ...
3
10,380
Trigger.io on iOS 7 hangs at launch image
<p>I just updated my trigger.io app to use the latest stable platform version (v2.0.1) so that it would hopefully work well on iOS 7. Unfortunately now it hangs on the launch image. The error I get on the iPhone console is below. Any ideas on how to get this working?</p> <pre><code>Oct 1 19:52:42 Strax mobile_install...
3
2,852
KeyError on FeatureUnion between TfDif and custom features
<p>I am trying to create a model where I'll use TfidfVectorizer on a text column and also a couple of other columns with extra data on the text. The code below reproduces what I'm trying to do and the error I get.</p> <pre><code>import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklea...
3
1,338
How to make copies of an enum without copy pasting code?
<p>I am making enums to assist in reading and handling excel imports of products with components.</p> <p>I have currently made the following two enums.</p> <pre class="lang-java prettyprint-override"><code> public enum ProductSheetColumns { PRODUCT_ID("Product ID", "A"), PRODUCT_NAME("Product Name"...
3
1,522
RecyclerView with LayoutBinding - Swipe to remove - Leaves empty space of item size
<p>I have searched a lot online but apparently unable to find answer. I have a todo list, and the adapter has swipe functionality attached, so when someone swipes the item it removes the item from the list.</p> <p>The problem is that the item that is removed is replaced by new item, but that area is shown as empty are...
3
1,701
Exoplayer decoder init failed when playing Admob reward videos
<p>I'm testing reward videos from Admob and I'm getting the error bellow. The code is correct because it works on a Samsung S7.</p> <p>The error accurs when running on a Samsung S3 mini with Jelly Bean 4.3.1.</p> <pre><code>I/Ads: Starting ad request. I/Ads: This request is sent from a test device. I/ExoPlayerImpl: I...
3
2,339
How to get move, swap and compare count for quicksort in C++
<p>I wrote some code snippet in order to get move, swap and compare count for quicksort in C++, but it only gave me compare count. Didn't find a good answer in google. Can someone have a look at the following code and give me some clue? Thanks a lot.</p> <pre><code>#include &lt;iostream&gt; #include &lt;vector&gt; #in...
3
2,534
Retrieve images from different PCs
<p>I'm developing a website (HTML, CSS, PHP, JavaScript) which needs to have access to different PCs and getting images. Then I want to display those images to any user uses my program.</p> <p>For example I want to open the folderA that is on pcA from my PC and get all the images in that folder and display them in my...
3
3,855
Issue with JQuery libs no longer firing
<p>I did have this working, but I have changed things about to make things neater and it no longer works. I have removed some code, but I have a page project.php which has the basic structure like so</p> <pre><code>&lt;?php include_once "templates/header.php"; ?&gt; &lt;div class="container-fluid"&gt; &lt...
3
2,127
Shortcode for Wordpress
<p>I am trying to make a shortcode for Wordpress which will display specific posts based on the "id" of the post. </p> <p>I have found a shortcode example below which displays the most recent posts of "category1".</p> <p>Any thoughts on what should i do in order to make this work.</p> <pre><code>function pp_recent_w...
3
1,785
UWP FullTrustProcessLauncher gives "Element not found" exception on launch
<p>I have a solution in visual studio containing a Windows Application Packaging Project, a UWP project, and a Console Application project. The UWP app contains a single button that when pressed is supposed to launch the console application as a fulltrust process. Solution Explorer looks like this:</p> <p><a href="http...
3
2,708
Pass props though screenstack
<p>Im trying to pass some props to though an screenstack element in react native. I have a button which onPress will ask for a screen using react navigation like this:</p> <pre><code> &lt;Button title="Lees Meer" color="#d10a10" onPress={() =&gt; RootNavigation.navigate('Article', { params...
3
1,100
worklight 6.2 - server connection Issue
<p>Worklight 6.2 push notification is working for Android but not for iOS.</p> <p>I followed the certification process when i installed in an iPad.<br> created certificates - apns-certificate-sandbox.p12. </p> <p>after update, IP address not changing and also Push notification not working. I am also unable to sync w...
3
1,282
Enable/Disable QPushButton upon row selection in QTableWidget
<p>I have a QTableWidget and a Delete QPushButton.</p> <p>I want the delete button to be enabled only when a row is selected from QTableWidget and if no row is selected then button should be disabled. </p> <p>While initialization I am doing:</p> <pre><code>#Make rows selectable self.tableWidget.setSelectionBehavior(...
3
1,246
How to show only icon to the particular user when we click on it using reactjs
<p>I'm trying to show icon when it is hovered and clicked on the particular User but here when i click on the icon of particular user then i could see for the other users also showing the icon without hovering or clicking on it. Can anyone help me in this query?</p> <p>Here is code:</p> <pre><code>&lt;Card&gt; ...
3
1,087
Reducing time complexity for the given task
<p>I have an item that has a name and a price for it.</p> <p>Now input for my program contains some list of commands which indicate I can add new item or select an item in the following format:</p> <blockquote> <p>Add, item-name, item-price --&gt; Adds item-name with price item-price to my list. Select, , --&gt; selec...
3
2,431
Processing IDE - Double Click on Buttons for Different Conditions
<p>There are 4 areas on my LED Ring and I made 4 buttons for choosing them. I want to be able to use these areas for different combinations.</p> <p>So my aim is:</p> <p>One click on the button: Selected area is active.</p> <p>Double click on on the button: Selected area is deactive.</p> <p>I know there is a function ca...
3
1,840
Apply gradient to label in UICollectionViewCell
<p>I am trying to apply the gradient to a UILabel in one of the cells in my UICollectionView. </p> <p>Following some responses online I added the extension to UIImage: </p> <pre><code>extension UIImage { static func gradientImageWithBounds(bounds: CGRect, colors: [CGColor]) -&gt; UIImage { let gradientLay...
3
1,104
App will not connect to Firebase Storage- Will not open, No errors
<p>I was going through a tutorial to create a voice recorder which will then upload the recording to Firebase. I watched the tutorial many times and made sure the app is connected to Firebase; however, the app will not open right now most likely due to this issue. I'm pretty new to Java programming. Can someone please ...
3
1,461
Overriding drawRect not rendering
<p>I'm overriding drawRect and I see my breakpoints getting hit. I'm expecting a series of red squares to be shown, but I only see the background color.</p> <pre><code>class GameViewController: UIViewController { var board: Board! override func viewDidLoad() { super.viewDidLoad() let w = UISc...
3
1,448
One unnecessary turn in TicTacToe game
<p>I'm trying to make this code for a TicTacToe game in JavaFX. But now even when there is a winner (meaning someone put his three Xs or Os in a row/column/diagonal) the programme still allows the other player to put his sign on the board. Only after that the winning buttons are changed and the buttons are set disabled...
3
1,746
SELECT data from 1st table whether exists or not in 2nd table but with conditions
<p>I need some help from some <code>sql/postgres</code> guru's. What I'm trying to accomplish is I have a table for <code>tracks</code>, <code>genres</code> and <code>playlists</code>. I need to select from table <code>tracks</code> if it already exists in <code>track_playlists</code> or not exists. Which I have kind o...
3
1,077
Cannot use relative path when using img tag react
<p>I have a img tag that is not loading the image i want when i use a relative src path for my React project. When I do:</p> <pre><code>//import { ReactComponent } from '*.svg'; import React from 'react'; import firebase from &quot;./firebase.js&quot;; import &quot;./LobbyStyle.css&quot;; import pfp2 from &quot;./image...
3
1,319
SQL Error : The multi-part identifier ... could not be bound
<p>I'm currently stuck in this problem in SQL Server and couldn't figure out where the problem is. </p> <p>I'm using stored procedure for the following code : </p> <pre><code>DECLARE @cSql nVARCHAR(1000) SET @cSql = 'SELECT [A].[REC_ID], [A].[ADJUSTMENT_REC_ID], [A].[ITEM_REC_...
3
1,216
Form Decision - JavaScript / AJAX
<p>I have a little dilemma with the decision part of my form. I'm attempting to create a form with radio buttons and a checkbox in an html page but I would like to retrieve data from my .php page. I think there's an issue with the .php portion of the code. I'm getting a response from each 'if' statement regardless of...
3
1,293
Rebind function when change DOM after ajax
<p>I'm trying to get the height of an element before and after an ajax call to change the content of this element (for learning reasons).</p> <p>Example:</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 ...
3
1,101
Transparent background behind font
<p>With LWJGL and OpenGL, I want to draw a textured rectangle. Above that, I want to write some Text using the Slick Library. My Problem is that when I draw the Text before the rectangle, the font has a transparent background. See it here:</p> <p><img src="https://i.stack.imgur.com/qToos.png" alt="enter image descri...
3
1,960
unfortunately, the project has stopped, android error
<p>I am writing an android application, the application has many buttons each button will direct the user to another activity, the problem is when I run the application it crashes.</p> <p>it just says: unfortunately, the project has stopped.</p> <p>I don't know what may cause this problem!!</p> <p>this is the main ...
3
3,627
Transfer folder in socket - java
<p>My goal is to transfer a folder via <code>Socket</code> with the following process:</p> <ol> <li>Zip a folder.</li> <li>Transfer it from client to server using <code>Socket</code>.</li> <li>Have the server extract the zip file.</li> </ol> <p>It is working on the client side, but on the server side the zip file is ...
3
2,729
SSIS script task is only working with debugging mode
<p>I am using VS 2017 and SQL server 2016 to do the job. I create a script task that tries to send email by using SendGrid. If I put a break point inside the script task, I won't have problem to execute my SSIS package and then get the email. However, if I simply execute the package, the entire package still can be exe...
3
1,420
Service Worker sending multiple notifications
<p>I have created a wordpress plugin Web push notification where the user can allow a notification and subscribe to our website. The user will receive desktop notification when we publish new post. I have a user service worker for that.</p> <p><strong>The issue is that when the user subscribes they will receive welcom...
3
6,595
Serializing inside PgwModal returns empty values
<p>I want users to be able to register themselfs inside a modal (pgwmodal.js). Serializing the form returns keys with empty values even though they are filled in.</p> <p>HTML</p> <pre><code>&lt;div id="modal-register" style="display: none;"&gt; &lt;div class="row"&gt; &lt;form method="post"&gt; ...
3
1,065
Getting a UIImage from an ALASSET to use ad an attachment when sending an email
<p>I have a collection view which contains ALASSETS, I want to be able to select an item (photo) in the collection view and send it as an attachment in an email. The collection view is based on a tutorial, iPhone Programming Tutorial: Creating An Image Gallery this is a recent post so it should be up to date.</p> <p>T...
3
1,441
HTML form returning raw PHP code
<p>I have a form and I would like the contents to be mailed to an email address, the problem I'm having is that anytime I hit the submit button, the page just shows the raw PHP code and no email is being sent. I took out the email address, but I just have a yahoo account in there now for testing purposes. I am running ...
3
1,260
c++ binary tree, need a way to return line number the word is on, not the word number
<p>here is my code at current. right now i am returning the word number as it occurs when i am reading the text file in, what i need to do is return the line number the word exists on and print this out next to each word that i return to the console. so rather than "hello world" appearing as, hello - 1 world -2, i nee...
3
1,402
didReceive(event: WebSocketEvent, client: WebSocket) is not called on socket?.write(string: method in Starscream
<p>I am using latest Starscream version of package in my chat application.Please take a look on my code snippet:-</p> <pre><code>import UIKit import Starscream import Network class ViewController: UIViewController,WebSocketDelegate { var socket: WebSocket! var isConnected = false let server = WebSocketServer() var w...
3
1,667
Code spliting with dynamic imports still create big files
<p>I'm trying to make a production version about my client side code to deploy later in AWS. When I compile and build my web application in development enviromet, everything works fine. But when I try to do it in production enviroment I've got a warning because I've got files bigger than 244KB. </p> <p>To fix this pro...
3
4,078
is it possible to reduce the draw delay in this X11 program?
<p>This program should run in any Linux with X.org. All it does is draw a circle around the mouse when it moves. The problem is the delay, it feels bad. Is it is possible to reduce it?</p> <pre><code>#include &lt;X11/Xlib.h&gt; #include &lt;stdlib.h&gt;//this is for malloc //#include &lt;stdio.h&gt; #include &lt;math....
3
1,878
VS Code - Switching Python versions in integrated terminal
<p>I have <code>VS Code v1.44.2</code> with Microsoft's <a href="https://marketplace.visualstudio.com/items?itemName=ms-python.python" rel="nofollow noreferrer"><code>vscode-python</code></a> extension installed on <code>Windows 10</code> machine. </p> <p>According to <code>vscode-python</code> documentation, it has t...
3
1,748
Obj-C UIDownpicker will fill another textfield with another value during scrolls
<p>My code below will fetch country name and country code from server and store into <code>2 NSMutablleMArray</code>, <code>countryMArray</code> and <code>codeMArray</code>code. When user tap the <code>txtCountry UITextField</code> It will call a <code>down picker</code> and when user select the country and hit Done, i...
3
6,209
Extra segment won't register color data in assembly
<p>I am programming a game similar to breakout in assembly (tools:DosBOX, notepad++, tasm), and whilst creating the borders and platform in Graphics mode, I've stumbled upon 2 problems:</p> <ol> <li>It seems as if the extra segment won't register the color information, as I can't get it right and when I try to pull it...
3
2,557
In a CubeMX-generated project, where is PCD_EP_TX_ADDRESS defined?
<p>I need to use the macro <code>PCD_GET_EP_TX_ADDRESS</code> from <code>stm32f3xx_hal_pcd.h</code>.</p> <p>It is defined with:</p> <pre><code>#define PCD_GET_EP_TX_ADDRESS(USBx, bEpNum) ((uint16_t)*PCD_EP_TX_ADDRESS((USBx), (bEpNum))) </code></pre> <p>but using it causes a compilation error as <code>PCD_EP_TX_ADDRE...
3
1,487
How to create a mongoDB aggregate query in python for documents which contain nested list of documents?
<p>I have a mongoDB collection with documents that look like:</p> <pre><code>{ "_id" : "132743", "RECORD_DATA" : [ { "FIELD_TYPE" : "Primary", "DATA" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec blandit leo sit amet nisi ultricies bibendum. Aenean efficitur...
3
1,403
UILabel not visually refreshing
<h2>The Problem</h2> <p>I have a <code>UILabel</code> buried in a few layers of subviews and I can't seem to change it's text. The code to update the label is in<code>MyCardSubclass</code>'s <code>updateVisualElements</code> method. The really weird thing is that <strong>when I log the description of these labels, the...
3
1,651
"FATAL EXCEPTION: main" upon app launch
<p>After following a beginners tutorial I ended up combining a bunch of lessons to create a timer app which takes an amount of time and plays media once the time passes. The app worked perfectly...Yesterday. I don't recall changing anything but when I tried to debug today the app would load to my phone, install, and cr...
3
2,684
Schneier's Solitaire Cypher Issues
<p>I am trying to implement Schneier's Solitare Cipher in Java and I keep running an issue where I get wrong output when decrypting which means either my encryption logic is wrong or my decryption logic is wrong and I just can't figure it out.</p> <p>Here's the code</p> <pre><code> package com.alvonellos.util.crypto; ...
3
1,995
Problem loading sld raster style in Geoserver 2.15.1
<p>When I try to load mi sld style to a hillshade raster (tif format) it gives me the folllowing message:</p> <p>line 21: cvc-complex-type.2.1:the element 'sld: normalize' must not have any characters or any [child] element information elements, because the type content type is empty.</p> <p><div class="snippet" data-l...
3
1,154
Overlapping of fragments when transiting on clicking on an item in RecyclerView of one fragment to another new fragment
<p>I am new to android development. The problem is the RecyclerView populated using a firebase database is not replaced by a new fragment, rather the new fragment is on top, but clicking on another item of the recycler view still works, which I checked using a toast in the new fragment. I know that the next fragment is...
3
1,680
Getting image from DOCKER API using blob
<p>I'm trying to download a image using POSTMAN, so I'm trying to execute the following steps:</p> <p>1- Get the manifest information:</p> <pre><code>GET https://registry-1.docker.io/v2/library/ubuntu/manifests/latest </code></pre> <p>So I get the following response:</p> <pre><code> { &quot;schemaVersion&quot;: 1,...
3
2,267
Extending jQuery plugin and changing default values
<p>I have a plugin called "myPlugin" which uses the commonly used design pattern of default values which can be overridden upon initialization.</p> <p>Instead of passing the overriding values upon initialization, I would like to extend the plugin as "myPlugin2" and change the default values so that when I initiate the...
3
2,300
MVC 3/EF/SQL Handling Connections, Disposal and Timeouts
<p>Currently, this is how I am handling data within my MVC 3 application. Being pretty new to both MVC 3 and the Entity Framework I am not quite sure this is the best approach to handling data within the application. In fact, the call to check UserExists below sometimes gives a SQLConnectionTimeout issue which seems to...
3
1,511
Moving more rows then selected
<p>I have this app script that is supposed to move a row if a checkbox to marked or unmarked (to another sheet). I know there is definitely some real cleanup I need todo but when I read thru it all seems like it should work.</p> <p>Currently if I check a box it moves that row then moves the last row also. Any pointers ...
3
1,619
Using parent class toString in object Array to print parent class variables for child class JAVA
<p>I am trying to write a code that takes vehicle names and such and stores them in an array of objects. I have Vehicle as the parent class with a toString that prints the name, brand and gallons of tank, the two subclasses of parent are bus and car. Car and Bus ask how many doors,wheels or passengers. When printing th...
3
2,853
Overloading an input operator
<p>Currently have a assignment in which I've to create my own BigInt class. The issue I'm having is that I'm not sure how I would be able to overload the input operator the same way I've overloaded =.</p> <p>My header file is as follows:</p> <pre><code>#ifndef BIGINT_BIGINT_H #define BIGINT_BIGINT_H #include &lt;iostr...
3
1,260
I want to change state of the component without reloading metro in react-native
<p>so basically i have bunch of apps in my application as you can see in image In my app it check if application is installed or not, if its installed its shows open and if not it shows install now the issue i'm facing is if application is not installed, i click on the button install, it will redirect to play-store the...
3
1,058
How do I fix a race condition in a nested Promise in Node.js?
<p>Alright, so this question is an extension of <a href="https://stackoverflow.com/questions/44443563/nested-promise-is-not-propagating-error-to-parent-promise-in-node-js">this question</a> and related to <a href="https://stackoverflow.com/questions/46497131/how-do-i-skip-a-callback-when-running-map-in-javascript-node-...
3
1,614
How to conditionally separate a cell value and add to a column using pandas
<p>For example</p> <p><strong>testing.csv:</strong></p> <pre><code>First Name Last Name Profile URL Ashleigh Phelps https://www.linkedin.com/in/ashleighephelps Jonathan https://www.linkedin.com/in/jonathantsegal Camilla Innes https://www.linkedin.com/in/camilla-innes-61213628 ...
3
1,138
Javascript click event not working in Google Chrome?
<p>I have a search function in which the user selects a date range, and search box if desired, and it loads the query results dynamically into an HTML div element. When the results are displayed, there is a selection box to select a field to sort by. When the user selects a field, it triggers another AJAX request which...
3
2,296
Why My MVVM does not work when I change data on the fly?
<p>My xaml:</p> <pre><code>&lt;Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/ma...
3
1,523
Coin Flip HTML / Javascript | (Help)
<p>I've tried to make my code work with the example below but after multiple hours of trying I'm giving up... Could someone please help me put this all together so it will work fine?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre cla...
3
2,910
pthread_mutex_lock waiting to lock a highly contented mutex exactly 60 seconds, if the mutex cant be locked immediately
<p>I am developing a shared memory IPC using C.</p> <p>In the design, a main server thread listens on a queue(called Main Request Queue) which is in shared memory and used for new connection requests. When each client process wants to connect to the server, it first try to lock a mutex on that queue and then put the r...
3
2,602
Make the option available if i click the remove button
<p>I am facing the problem that if I click on "remove" my selectbox should disappear as well as my option that I have selected in the select box should be available in next select box again. Right now if I click on remove it is disappearing but the option doesn't seems to be available in other select fields. </p> <p><...
3
2,275
Jquery Typeahead
<p>I'm trying to create an autocomplete search field from a json file with Jquery Typeahead, to have an autocomplete preview on search inputs similar to google search, based on this example: <a href="http://www.runningcoder.org/jquerytypeahead/demo/" rel="nofollow noreferrer">http://www.runningcoder.org/jquerytypeahead...
3
1,305
Mongoose Schema type Object Id Mapping
<p>Backend Code: This is orderModel.js</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>import mongoose from "mongoose"; const orderSchema = mongoose.Schema( { user: { ...
3
2,037
Ontology updation
<p>I have installed Protege 4.2 alpha for creating Ontology. I have created an ontology (Tamil.owl). My need is to update the created ontology using a java program.</p> <p>Got an error stating "no protocol" while executing the below java program</p> <pre><code>import java.io.File; import java.io.FileNotFoundException...
3
2,040
How to pass the variable value from jQuery to java code in html
<p>I need to change my query to database depending on choosen radio button. I'm using MVC play framework, java, jQuery and HTML.</p> <p>Here is the form with radio buttons and select with options, where options are requested in RequestController.java controller.</p> <pre><code> &lt;div class=&quot;form-group row form...
3
1,688
not able to receive access token on my node.js app
<p>guys since its my org code so I cannot share all my code but the gist of the issue is I have deployed a node.js app on gcp with <strong>env: flex</strong> (this env:flex is supposed to be configured on app.yaml) and with flex everything was working great but as soon as I moved to env:std that is standard env i start...
3
7,644
Issue with counting in MySQL
<p>I try to solve an issue but I need help :)</p> <p>Actually this query works, I have the sum of all sales in the last colums:</p> <pre><code>SELECT DISTINCT epps.SKU, epc.name , COUNT(*) FROM ERP_CUSTOMER_ORDER eco INNER JOIN ERP_CUSTOMER_ORDER_ITEMS_2 ecoi2 ON ecoi2.ERP_CUSTOMER_O...
3
1,864
Preventing IndexOutOfBoundsException on while loop [Java]
<p>I am making a card game and it works well except I cannot get to the bottom of the deck without running into an IndexOutOfBoundsException error at some point. I have an array of numbers between 1 and 52 that are randomized and I use that to choose what index to call from the arrayList of cards I have. Since the deck...
3
2,129
Memoryleak error caused by wrong route
<p>Hi i got the same probelm as in here: <a href="https://stackoverflow.com/questions/7788280/memory-leak-when-redeploying-application-in-tomcat">Memory leak when redeploying application in Tomcat</a> but with the difference that it is a mistake somehwere in my route, because when i got a simple from - to route, it wor...
3
1,037
<a href> link wont work when loaded with javascript
<p>I have a very small page being managed by some javascript. When I load the page into the browswer the link after the form (id=login_linker) works fine. </p> <p>However, when I load it into a div the same link wont work. Does anyone have any ideas. </p> <p>Here is the body of the page that is being included. </p> ...
3
1,242
Data not being passed from Razor page
<p>I have a Blazor app that takes user input via a form field and puts it into a database. However, the data is not being passed from the front end correctly:</p> <p>Razor file</p> <pre><code>@using Blogs.Shared.Models @page &quot;/addpost&quot; @inject HttpClient Http @inject NavigationManager NavigationManager &...
3
2,512
PHP Mailer - 454 TLS connection failed
<p>On my page I have a contact form which uses PHP Mailer. At the beginning, for testing purposes only, I used it with my Gmail account. Everything worked like a charm. Then I decided to change the e-mail service from Gmail to one which comes from my hosting provider. Then the problems have started. Every time I attemp...
3
1,583
Obtaining wrong error-curve for logistic regression (Bug in Code)
<p>I started machine learning and wrote this code. But for some reason I am getting zig-zag error curve instead of a decreasing logarithmic curve. The "form_binary_classes" for now does nothing but take the start and end indices of two similar datasets with different labels. The error function returns the error in ever...
3
1,399
EOFExcepton reading UDP
<p>I am receiving an EOFException when the receiver of a UDP packet attempts to read it. Instances that are charged with reading and decoding UDP packets are called Engager objects. They contain a socket which is created in the Engager's constructor, and a method called getEngagementPacketSize is where the packet is re...
3
1,446
JProgressBar without JButton and PropertyChangeListener
<p>I am new to <code>JProgressBar</code> and new to OOPs concepts as well (learning it) and read a lot of articles and tried my best to learn it. All of the examples shown had a button which starts progress in it but how can I make a method so that when the method is called it starts progress?</p> <p>Here is my code f...
3
1,107
(ruby on rails)After an server data update, how to load/display a specific div from a partial in the quickest way with jquery/ajax?
<p>for clarity purposes I will display all the relevant code files to give the question contest/clarity. I am editing specific divs in a partial with a form and want to display the newly updated div only. </p> <p><strong>I have this div on the page Scoreboard#show:</strong> </p> <pre><code>&lt;div class="all-schedule...
3
1,163
SweetAlert 2 and Internet Explorer
<p>So basically we are using SweetAlert2 on our website. Everything is running well on various web browsers like Chrome, Firefox, Edge except Internet Explorer.</p> <p>At first - as almost everyone know - SweetAlert2 is using arrow functions which are not supported by Internet Explorer. However, as we also know - the ...
3
2,455
PHP->bash->python Output
<pre><code>&lt;?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); passthru(&quot;bash /var/www/html/init.sh 2&gt;&amp;1&quot;,$pass_result); echo $pass_result; ?&gt; </code></pre> <p>I am unable to get the python result at PHP level. The python script print(&quot;string&qu...
3
1,397
Enable the shipping calculator on the cart page doesn't work
<p>I am using WooCommerce 4.2.0 and I can't display the shipping fees on the cart page. However, the option &quot;Enable the shipping calculator on the cart page&quot; is checked in the Woocommerce &gt; settings &gt; shipping.</p> <p><a href="https://i.stack.imgur.com/HqzoQ.png" rel="nofollow noreferrer"><img src="http...
3
2,557
Array works fine on localhost but not working on live server (gives error message Undefined offset: 0) - Laravel-5.8
<p>Everything works perfectly okay on localhost but when migrated to godaddy live server(cpanel) I keep getting this error (Undefined offset: 0) on my blade view</p> <p>I have tested the application on my localhost using XAMPP running PHP 7.2.12 and it works very fine but now I moved it to godaddy cpanel running PHP 7...
3
2,438
flutter update value in another file widget
<p>I'm new in flutter and I try to update a variable in my main.dart from a customWidget in another file. I search on internet but I'm a little lost.</p> <p>How to update my variable userDistance with the value that the user enter ? Is my widget structure correct? or does it have to be stateless or stateful?</p> <p>M...
3
1,031
Remove rows from pandas DataFrame using multiple criteria
<p>I am trying to remove rows from a pandas DataFrame with multiple criteria. </p> <p>The criteria is if Trader_x buys and sells on the same date, remove both the buy and sell rows for that date.</p> <p>This is complex because it requires the trader and date to be unique for the lookup. I do not want to remove rows i...
3
1,119
ng-show not working in a directive
<p>I can't get ng-show on my spinningElement to work. I have an isolated scope, for the directive, but since it is an element inside I'd think it should work?</p> <p>Anyone have an Idea of what I am doing wrong?</p> <p>Code snippet:</p> <pre><code>angular.module('lr.upload.directives').directive('uploadButton', [ ...
3
1,149
Position a row at center in XDK
<p>I am using Intel XDK to build an app with app designer. I've got a login screen info (UID, PWD and Login Button) inside a row.</p> <p>Now I want this row to appear at screen center(horizontal and vertical), irrespective of screen size.</p> <p>Do I have to do this with media query with different sizes or there is a...
3
1,796
NPE primefaces's orderlist on a dedicated server with glassfish, work fine on localhost
<p>I launch my web application on localhost via netbeans on a glassfish server. I have no error on the page rankMe.xhtml. The deploy of the .war on my dedicated server work fine. But when I try to access to the page <code>rankMe.xhtml</code> with a primefaces orderlist, I have an NPE error.I don't get it.</p> <pre><co...
3
2,478
How can I "iterate" over a query in a view?
<p>I have the the following SQL query.</p> <pre class="lang-sql prettyprint-override"><code>SELECT us.foo, us.user_id_2, ( SELECT COUNT(*) FROM my_table x WHERE x.foo &gt;= us.foo AND x.user_id_2 = 53 ) AS position FROM my_table us WHERE us.user_id_1 = 53 ORDER BY pos...
3
1,318
C++ into C# pointers to a struct inside a struct of same type
<p>I'm trying to convert some C++ into C# for a personal learning project. </p> <p>Below you will see my C++ and then my attempt at converting it into C# using Unity classes like Vector3.</p> <p>My question:</p> <p>How do I handle pointers to a struct inside a struct of the same type?</p> <p>As far as I can tell it...
3
1,799
C++ how to reach 'stack' behaviour in this code?
<p>I would like to ask 2 question about this code. Where I just try to simulate a stack.</p> <p>Stack.h</p> <pre><code> #pragma once namespace stackandqueue { class Stack { private: int index; int *stackdata; public: Stack(); ~Stack(); void push(int ...
3
1,236
Change Style from my Map
<p>I'm learning how to use the Ext.js framework and I'm building simple applications using the MVVM model. I built a simple Map and I'm trying to costumize it, I did an application using Google API and the GMapPanel widget, and now I would like to create a new style and add it but I'm having some issues adding my costu...
3
2,896
Selecting Unique Element Only Once in XSLT
<p>I am trying to write an XSLT (version 1.0) that selects a unique element only once. The situation is that I am calling an ESB and getting back a SOAP XML result. I transform that result to strip out a bunch of unused elements and attributes and end up with something like this:</p> <pre><code>&lt;feed xmlns:xsd="htt...
3
9,920
How to avoid mutable and immutable borrow with IntoParallelIterator bound
<p>I have a function that operates on a <code>Vec&lt;T&gt;</code> which purpose is to extend the vector with new items generated using reference to existing items. I'm trying to run the generation of new data in parallel using <code>rayon</code>.</p> <p>This is a minimal example:</p> <pre class="lang-rust prettyprint-o...
3
1,458
Android Email intent not Working on Android 11 java
<h1>AndroidManifest.xml</h1> <p>...</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; package=&quot;com.example.justjava&quot;&gt; &lt;application android:allowBackup=&quot;true&quot; ...
3
1,029
How to create a vertical scroll with tabs inside a bootstrap modal?
<p>I have a bootstrap modal that consists of a set of tabs, I want the tabs to appear in a row through the two symbols I put on the image I can go to the tabs on the right and left, how to do that? thanks you for your help...</p> <p>Here is the picture where the tabs look like this, I want them to be in the same row wh...
3
4,671