title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Makefile exits with fatal error
<p>I have a project with following structure:</p> <pre><code>$ tree . β”œβ”€β”€ bin β”œβ”€β”€ include β”‚Β Β  └── reader.h β”œβ”€β”€ Makefile β”œβ”€β”€ obj └── src β”œβ”€β”€ main.cpp └── reader.cpp 4 directories, 4 files </code></pre> <p>I want to have <code>.cpp</code> file in <code>src/</code>, headers in <code>include/</code> , compile ob...
2
1,184
Inputting two or more values to the database simultaneously
<p>I'm new with PHP, am I doing this right? The function of the code below will put the 2 values inside the database simultaneously. Once I input the values in the 2 text boxes, only the value in the first textbox is stored into the database. How can I store these two values into database with one form?</p> <p><strong...
2
1,250
RTSP to RTMP using Xuggler and red5 - Out stream could not open in Container.cpp
<p>My requirement is Streaming IPCamera RTSP stream to RTMP stream. I have setup a application using livemedia 555 + VLC + Red5 + Xuggler. I successfully multistreaming using vlc as sdp file in locally. Now the problem comes in red5 + xuggler side</p> <p>I am using <a href="http://www.red5wiki.com/wiki/SteamStream" re...
2
1,159
How to go through the maximum amount of Tic Tac Toe possibilities?
<p>I wanted to know how many amounts of Tic Tac Toes possibilities there is, so I searched the web and found an mathematical theorem which says that there is <strong>255168</strong> possible games in Tic Tac Toe.</p> <p>Website: <a href="http://www.se16.info/hgb/tictactoe.htm" rel="nofollow">http://www.se16.info/hgb/t...
2
2,673
Shiny Mouse Click with ggplot2 pie chart
<p>I know that I can get xy mouse click coordinates in shiny with this stacked bar chart produced by ggplot2:</p> <pre><code>data &lt;- data.frame(pie = c(0.25,0.25,0.25,0.25)) library(ggplot2) ui &lt;- fluidPage( plotOutput('pie', click = &quot;plot_click&quot;), verbatimTextOutput('mouse') ) server &lt;- functio...
2
1,235
IntegrityError at /admin/auth/user/11/delete/ FOREIGN KEY constraint failed
<p>when i delete user from my admin panel it shows me given error I dont understand what is the reason of this error or where i am making mistake. I can update and create new users and delete those user who dont have profile but the users which have profiles they are unable to delete because of the following here which...
2
1,646
Realm "Cannot create asynchronous query" while using multiple addChangeListeners
<p>I'm getting this type of error:</p> <pre><code>Fatal Exception: java.lang.IllegalStateException: Cannot create asynchronous query while in a write transaction in /Users/cm/Realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_OsResults.cpp line 252 at io.realm.internal.OsResults.nativeStartList...
2
1,030
Backbone.js model trigger change only if model.on called again
<p>It's my first post here so please be nice ;) I'm trying to create a Backbone+requireJS sample app and I have stumbled upon a strange problem. In my views initialize function I bind to models change event by</p> <pre><code>this.model.on("change", this.change()); </code></pre> <p>Event is triggered correctly when da...
2
1,114
Entity Framework logs duplicates
<p>We're running Entity Framework 6 and have a DatabaseLogFormatter that formats our data, and it's logged via an NLog AsyncTargetWrapper to a file. The application is an MVC5 web app.</p> <p>The DatabaseLogFormatter is mostly empty stubs, except LogCommand and LogResult. Both of which format the data correctly. The N...
2
1,994
Checkstyle: CheckstyleException: Unable to find but file exists
<p>My Checkstyle configuration cannot seem to find my suppressions.xml, but it does exist and the filepath it is using works. Both my checkstyle.xml and suppressions.xml are in config/checkstyle. My checkstyle.xml has this:</p> <pre><code>&lt;module name="SuppressionFilter"&gt; &lt;property name="file" value="${co...
2
1,395
Python difference between mutating and re-assigning a list ( _list = and _list[:] = )
<p>So I frequently write code following a pattern like this:</p> <pre><code>_list = list(range(10)) # Or whatever _list = [some_function(x) for x in _list] _list = [some_other_function(x) for x in _list] </code></pre> <p>etc</p> <p>I saw now on a different question a comment that explained how this approach creates ...
2
1,978
OpenGL 3D Selection
<p>I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it registers a hit, but not anywhere else. That is, it is not registering depth, and if you clicked on it's square head...
2
1,807
access to search edit text in action bar using appcompat
<p>Hi i want to set listener to search edit text in android 2.3 for that i'm using appcompat.<br> my contact_menu.xml is </p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:myapp="http://schemas.android.com/apk/res-auto" &gt; &lt;item android:id="@+id/action_search" ...
2
2,391
Fix a corrupted NPM database in Nexus?
<p>Our Nexus server filled its disk, and when we restarted it I got the following error:</p> <pre><code>jvm 1 | 2015-08-18 09:44:13,660+1000 ERROR [jetty-main-1] *SYSTEM com.bolyuba.nexus.plugin.npm.service.internal.orient.OrientMetadataStore - Life-cycle operation failed jvm 1 | com.orientechnologies.orient.cor...
2
1,172
d3.js zoom transition with map tiles
<p>I'm trying to implement a zoom transition on a map that uses tiles. I want to zoom in on one location, then go back and forth between two other locations. </p> <p>This is the example I'm working from: <a href="http://bl.ocks.org/mbostock/6242308" rel="nofollow">http://bl.ocks.org/mbostock/6242308</a> That does what...
2
2,448
React Native: FlatList with require Images not performant
<p>I'm struggling to get a list view performant.</p> <p>Scenario: I'm loading around 100 list items on one screen. When transitioning to this screen, everything on view is rendered perfectly BUT the scroll is frozen for couple of seconds before view is alive and it becomes available.</p> <p>Changing the images to be ...
2
1,136
Deployment error on Laravel 5.1 on Amazon Server EC2
<p>I try to deploy my laravel code ( works locally ) in Amazon EC2 with Envoyer script. I get this error:</p> <pre><code>Using global Composer installation. Loading composer repositories with package information Installing dependencies (including require-dev) from lock file - Installing vlucas/phpdotenv (v1.1.1) ...
2
9,159
snapshot.data.docs.length not working on flutter
<p>I make some listview and it have likes and comments section. I want to show how many likes and comments that post had. The like section works by displaying the number of users who like it, i try to show it with <code>snapshot.data.docs.length.toString()</code> from firestore but when i try to show how many comments ...
2
4,694
Adjust the height of Google Maps Flutter
<p>How can I adjust the height of a Google Map in order to see the background of the page slightly. I've been using <code>curved_navigation_bar</code> It would be great if anybody could help me out, thank you so much in advance!.</p> <h3>Current result</h3> <p><a href="https://i.stack.imgur.com/3sLHX.jpg" rel="nofollow...
2
1,137
UITableViewCell content disappears after scrolling
<p>I have a UITableView which gets its data from Parse. It is basically like a feed that has message posts, UIMapView and UIImages. Some posts have only text however, so I've made up 4 different cell types. For all the different combinations of posts.</p> <ol> <li>Text Alone</li> <li>Image with Text</li> <li>Image and...
2
2,788
Boost variant apply_visitor compilation error
<p>This simple example code for boost::variant and boost::apply_visitor:</p> <pre><code>#include &lt;boost/variant/recursive_variant.hpp&gt; struct ExprFalse; struct ExprTrue; struct ExprMaybe; typedef boost::variant&lt; ExprFalse, ExprTrue, ExprMaybe &gt; Expression; struct ExprFalse { }; struct Ex...
2
1,112
Fixing a jQuery animation to slide images onto the screen
<p>I have an animation going here that slides in 3 images onto the screen, holds them there for 30 seconds then slides them back off screen.</p> <p>My issue currently is, Image 2 will only slide on screen once Image 1 has fully completed it's slide-in animation, and same thing with Image 3 waiting for Image 2 to fully...
2
1,380
How to map a DataSource Resource Ref Name to JNDI Name in EJB 2.x in WildFly?
<p>How to map a DataSource Resource Ref Name to a JNDI Name in EJB in WildFly? </p> <p>I know that in JBoss 4.2.3 it is done in <code>jboss.xml</code> but it is not working in WildFly. </p> <p>Here is my test: </p> <p>I am working with Java 1.7, XDoclet 1.2.3, WildFly 8.2.1.Final, Dynamic Web Module 2.5, EJB 2.1 in ...
2
4,056
Can you load an img tag's src inside javascript file and then draw it to the canvas?
<p>index.html</p> <pre><code>&lt;html lang="en-US"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=8" /&gt; &lt;title&gt;DCView&lt;/title&gt; &lt;script type="text/javascript" src="dcview.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div styl...
2
1,110
How to detect connection lost with Jetty WebSocket
<p>I use a WebSocket to ensure communication between two standalone jars. The first one launches an embedded Jetty and deploys a WebSocket, and the second is the Jetty WebSocket client that sends commands and waits for the processing of the server part.</p> <p>Server:</p> <pre class="lang-java prettyprint-override"><...
2
1,354
React loadable not rendering component, only displaying the Loading function
<p>I am using React Loadable to show a quick loading message in between displaying components. However, in production, it is not displaying the component and is only showing the "Loading..." message. For some reason, it works locally (localhost:3000), but it won't render when tested in a live environment. </p> <p>This...
2
1,180
Binding keys in Mac OS X - Tkinter
<p>I have a code that works perfect in a Ubuntu system. This is just a minimal code based on it:</p> <pre><code>import tkinter as Tk import tkFileDialog import ttk class AppGUI(Tk.Frame): def __init__(self, parent): self.ctrl = False self.parent = parent self.centerWindow() sel...
2
1,293
2-Water jug in prolog
<p>I'm trying to solve the 2-water jug problem in swi-prolog: Given 2 jugs of capacities 4 and 3 gallons respectively, I want to find the steps to obtain 2 gallons in jug of capacity 4 and 0 in the other.</p> <p>I wrote programs for this problem in C++ using both bfs and dfs: <a href="http://kartikkukreja.wordpress.co...
2
1,093
How to initiate chatting between two clients and two clients only, using applets and servlets?
<p>I first need to apologize for my earlier questions. (You can check my profile for them)They seemed to ask more questions than give answers. Hence, I am laying down the actual question that started all them absurd questions.</p> <p>I am trying to design a chat applet. Till now, I have coded the applet, servlet and c...
2
1,867
mapred.reduce.tasks is not working as expected
<p>I have a simple mapreduce job, which uses a default mapper and reducer. The input is some text files. I am using Hadoop 2.x in pseudo distributed mode.</p> <p>My concern is even though i am setting <code>mapred.reduce.tasks=2</code>, still only one reducer is being invoked. </p> <pre><code>package org.priya.sort; ...
2
4,993
Logging in via modal using AJAX and PHP
<p>to be fair, I'm fairly new in the AJAX area (newbie to be more precise) and i think that i took quite a large bite entering that field.So, I'm struggling for a several days now trying to implement AJAX with my PHP script. Before you flag this question as duplicate please consider that I've tried every posted questio...
2
2,390
View.Gone not removing space for linearlayout
<p>I am making my LinearLayout view View.Gone but still it takes the space and empty space is shown. Please help me.</p> <pre><code>&lt;LinearLayout android:id="@+id/tvshow_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" ...
2
2,513
Android: Intent setClass causes NullPointer exception
<p>I want use Intent from TcpClient go to PreCamera. It 's causes java.lang.NullPointer Exception.</p> <pre><code>Intent intent = new Intent(); Log.v("Pic", "context"); intent.setClass(TcpClient.this, PreCamera.class); Log.v("Pic", "ok"); this.mContext.startActivity(intent); </code></pre> <p>this is TcpClient constru...
2
1,212
SDL project CMake build failure
<p>I try to set up an SDL project using CMake, but it seems like the executable isn't linked properly.</p> <p>This is the CMakeLists.txt I use</p> <pre><code>cmake_minimum_required(VERSION 3.0) project(MuspellsheimR) # includes cmake/FindSDL2.cmake set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules) # find S...
2
1,300
custom background on tabbar in storyboard
<p>So I have to admit, that I had this code working perfectly up until a day or so ago when I added a new view, so I'm rather frustrated at the moment.</p> <p>The setup: I have a storyboarded app that contains a tabbar. In the AppDelegate, I have the following for attaching the CoreData</p> <pre class="lang-objc pre...
2
1,057
Call ASP.NET WebMethod using AJAX JSON
<p>I'm prototyping a new web app in ASP.NET with VB.NET codebehind that uses JQuery's AJAX to call a WebMethod, but I keep getting parsererrors. Here's my markup:</p> <pre><code>&lt;%@ Page Language="VB" AutoEventWireup="false" CodeFile="testpage.aspx.vb" Inherits="WorkOrder_testpage" %&gt; &lt;html xmlns="http://www....
2
1,690
Error while executing "paster shell example.ini" in reddit.com
<p>Friends!!! I am frustated since last five days working on implementing reddit.com on a ubuntu 9.10 machine.</p> <p>Yes, I know that reddit.com has been tested on ubuntu intrepid. But now i want to install it on U9.10</p> <p>I have installed postgresql database, created user copied the files, and installed all the...
2
1,760
python local install uwsgi prompt: undefined reference to `PyCMethod_New'
<p>I use :<br /> <code>Ubuntu20.04 64bit</code>This image is located in Alibaba Cloud, ID:<code>ubuntu_20_04_x64_20G_alibase_20201228.vhd</code><br /> <code>python3.10.0a5 https://www.python.org/ftp/python/3.10.0/Python-3.10.0a5.tgz</code><br /> <code>uwsgi2.0.19.1 Stable/LTS https://projects.unbit.it/downloads/uwsgi-...
2
12,815
dropdownlist into an ASP.Net GridView not binding correctly
<p>I have a <code>GridView</code> with a <code>DropDownList</code>. The <code>DropDownList</code> items need to be set into the code behind. I checked online code samples and it looks I am supposed to code it this way:</p> <pre><code>&lt;asp:GridView ID="DG_Table" runat="server" style="z-index: 1;autogeneratecolumns="...
2
1,220
pull-right in navbar not working
<p>I use Asp.net mvc and bootstrap , I tried to put search bar to the right of the navbar by pull-right and float-right but it's not working seacrh bar stays next to other elements on the left of the navbr. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div cla...
2
1,510
Keras report wrong accuracy
<p>I'm training a Generative Adversarial Network (GAN) in Keras.</p> <p>My log reports that both networks (discriminator and combined model) reached 100% accuracy. That indicates that something is wrong.</p> <p>I try running inference and see that the discriminator is indeed 100% accurate, but the generator generates...
2
3,649
How to set the X-values to Bar chart view X-axis using Daniel Chart?
<p>I have use the Daniel Chart library.I want to show the xAxis value on the simple Bar Graph due to change in new library not able to set xValues,below is the previous code to set the xValues as string in but in the latest code not able to set same.</p> <p><a href="https://i.stack.imgur.com/bopIS.png" rel="nofollow">...
2
1,271
LISP evaluation in java expression error with main class
<p>I am trying to run below code but i am getting typecast error, when it takes the input from main it does not evaluate and gives me given error.</p> <p>can anyone please provide me some info where i am doin wrong..</p> <pre class="lang-java prettyprint-override"><code>Expression (+ (- 6) (* 2 3 4) (/ (+ 3) (- 2 3 1...
2
3,482
Do loops and convenience methods cause memory peaks with ARC?
<p>I'm working with ARC and seeing some strange behavior when modifying strings in a loop. </p> <p>In my situation, I'm looping using NSXMLParser delegate callbacks, but I see the same exact behavior and symptoms using a demo project and sample code which simply modifies some <code>NSString</code> objects.</p> <p>You...
2
2,872
MAMP SQLSTATE[HY000] [2006] MySQL server has gone away on Mac Catalina
<p>I googled and the solution was to add/edit this: [mysqld] wait_timeout=100000 max_allowed_packet = 256M</p> <p>into this file /etc/mysql/my.cnf and but i cant find etc, where is the etc?</p> <p><a href="https://i.stack.imgur.com/mGKuv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m...
2
1,655
java mapstruct 1.3.1 ignore property in a list for bi-directional DTO mapping
<p>I'm struggling with cycle dependency problem with MapStruct. I keep having a StackOverFlow error due to circular dependencies. To avoid it, I just need to exclude a property of a List. I found this : <a href="https://github.com/mapstruct/mapstruct/issues/933" rel="nofollow noreferrer">https://github.com/mapstruct/m...
2
1,138
Binary search tree segmentation fault
<p>This program is meant to take strings from an input file, sort them alphabetically to make a signature, then insert the signature as a key for a BST node. The word the signature was created from is then stored in a vector of strings linked to the key. Any words afterwards who's signature is the same is then pushed b...
2
4,660
Spring boot and LDAP with SHA512 password
<p>I'm writing a little application for use it as authentication server as microservice. (We are dividing an old monolithic app). </p> <p>This app has to login through a LDAP server (which is protected by an username and password). And ever user password is stored as SHA512 hash. But I always get an "BAD CREDENTIALS" ...
2
2,640
WebApiConfig.Register Clears routes defined by RouteConfig.RegisterRoutes apon deployment
<p>I'm on struggle street here, When I try to add API controllers it seems to destroy all my MVC base routes and area routes.</p> <p>On my application start I call</p> <pre><code>protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration)...
2
3,758
expect: Successful regex match of ".+" not setting $expect_out(0, string)
<p>In the following expect script, you can see that I am trying to match the regex ".*" . That match succeeds, but $expect(0, string) is still not getting set. What am I doing wrong?</p> <p>First, the script (in a file called /usr/local/bin/py) ...</p> <pre><code>#!/usr/bin/expect -d log_user 1 exp_internal 1 match...
2
1,138
Create trigger with a cursor inside for multiple inserts
<p>I want to create a trigger on every insert to the USERS table that will insert several entries to the BALANCES table, one entry for every coin id that exists in the SQL_COINS_VIEW view (hope i'm clear enough). The idea is that every time an account is created, it gets a balance 0 for each available coin in the list....
2
1,181
Constraint layout doesn't fit on different devices
<p>I am trying to adapt a layout that I build with a nexus5, but it always get a different size on my device and I don't know why.</p> <p>I used constraint layout to build it, and as I know the constraints should adapt on different devices but it is not working; I get always my content to be bigger or to overlap the o...
2
2,226
How to make the array sort by Product[counter].getProductTitle()?
<p>Question: Where does <code>productArray</code> come from in these:</p> <pre><code>for ( Product product : productArray ) </code></pre> <p>&amp;</p> <pre><code>Arrays.sort( productArray, new ProductComparator() ); </code></pre> <p>Question: What am I doing wrong? How do I make this sort?</p> <p>Related <a href="...
2
2,001
Webpack config error: configuration has an unknown property 'postcss'
<p>I tried to build an angularjs application with webpack. But I can't do it because of the following error. Using the v2.1.0-beta.21 of webpack, I'm seeing this error.</p> <pre><code>Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configur...
2
3,246
Pandas dataframe errorbar plots separated by category
<p>So I've tried <code>seaborn</code> and <code>pandas</code> native plotting features and feel like I'm relegated to using pure <code>matplotlib</code> which is a disappointment but this is the problem I currently have.</p> <p>I have a <code>pandas</code> data frame that has x-values in time, y-values in magnitude, a...
2
1,048
WSDL-Axis2 CodeGen Problem
<p>I am having a problem sending a WS Request to a Server. It seems that the Namespace(NS) in one of the ComplexTypes of an operation types is causing an <code>xsi:type</code> to be spewed as part of the generated SOAP Request.</p> <p>Please see below for WSDL Sample:</p> <p><code> &lt;xs:complexType name="SubscribeA...
2
2,350
Angular function not working?
<p>I'm new to Angular but I've done a couple basic examples successfully. Now I'm looking at starting my first real world Angular/MVC/WebAPI app. It's going to be a Time Card type app and the first thing I'm looking to do is display the current time of the local user. I did to a basic HelloWorld with Angular on the Ind...
2
2,352
WCF: SecurityNegotiationException when using client
<p>So I've been trying to set up certificate authentication for my clients and services. The eventual goal is to partition data based on the certificate a client connects with (i.e. the certificate becomes their credentials in to the greater system and their data is partitioned based on these credentials).</p> <p>I ha...
2
2,018
Golang file upload to s3 using OS Open
<p>I am trying to upload an Image to my s3 account using Golang and the amazon s3 api . I can get the imagine uploaded if I hard code the direct path such as </p> <pre><code>file, err := os.Open("/Users/JohnSmith/Documents/pictures/cars.jpg") defer file.Close() if err != nil { fmt.Printf("err opening ...
2
1,086
Persistent Volume Claim for Azure Disk with specific user permissions
<p>I'm trying to create a dynamic Azure Disk volume to use in a pod that has specific permissions requirements.</p> <p>The container <a href="http://docs.grafana.org/installation/docker/#user-id-changes" rel="nofollow noreferrer">runs under the user id <code>472</code></a>, so I need to find a way to mount the volume ...
2
1,062
Snake game, start
<h2><strong>I have fixed the errors but I am still unable to get the game to start</strong></h2> <p>This is a snake game and I can not get it to start. When I try to run it on Eclipse it keeps giving me </p> <pre><code>Exception in thread "main" java.lang.NullPointerException at Snake.createSnake(Snake.java:110) at S...
2
3,089
Slider content with media query
<p>I am trying to create slider responsive. Roundabout slider will be used, actually roundabout is responsive but it is not working for me, so I decided to create custom media queries. The problem is <code>.rd-slider</code> is not showing in middle of the screen when screen size is less than 1199px in width. How do I p...
2
1,076
Neural Network Backpropagation Algorithm Implementation
<p>I implemented a Neural Network Back propagation Algorithm in MATLAB, however is is not training correctly. The training data is a matrix <code>X = [x1, x2]</code>, dimension <code>2 x 200</code> and I have a target matrix <code>T = [target1, target2]</code>, dimension <code>2 x 200</code>. The first 100 columns in T...
2
2,581
How to loop through JSON values and plot lines on highcharts
<p>I have below JSON data </p> <pre><code>[ {"line":"BAH","data":{"May":120}}, {"line":"DOM","data":{"May":120,"Apr":90,"Mar":43.5}}, {"line":"GLW","data":{"May":120}} ] </code></pre> <p>I would like to loop through this data and plot line graph with the values (BAH,DOM,GLW) on Y-axis and Month Names(Ma...
2
8,070
An exception was thrown while activating Castle.Proxies.AlertAppServiceProxy
<p>I am trying to leverage the Book and Author abp tutorial to build a sample application.</p> <p>In my sample app, I have sites (rather than books) and alerts (rather than authors).</p> <p>Everything seems to be right. However, as soon as I load the /alerts page, I get the following error.</p> <p>Looking for some dire...
2
4,107
how to hide all other tabs except first tab in jquery when using ajax
<p>I am making a web app in Eclipse, using JSP, CSS, JQUERY(jquery-1.10.2.js) and AJAX. I have made a tab effect using HTML(actually JSP) and CSS. I have 2 JSP files: </p> <ul> <li><p>1st JSP (named: <code>home.jsp</code>) file has only 1 button which will load the content of second JSP file using AJAX (Jquery lo...
2
3,178
Error in eval(expr, envir, enclos) : object 'V2' not found
<p>Why am I attaining this error? It appears my svm classifier worked based on the output, however the rest does not work. I have attempted this with the given iris dataset from R, and the code below worked perfectly. However, when trying to run with the loaded data set it does not. </p> <p>error: </p> <pre><code>Err...
2
1,464
Java Action Listeners in a different class not working
<p>I've been working with JFrame recently and had a simple login, register and popup frames work when I had them in a single class. I wanted to make it nicer and not all packed inside one class so I made a class for the frames, buttons, panels, variables and the main class. My problem is that The frames themselves are ...
2
5,176
How can the same socket object serve different clients?
<p>As is mentioned in the documentation: <a href="https://docs.python.org/3/library/socket.html#socket.socket.accept" rel="nofollow noreferrer">Python socket.accept()</a></p> <blockquote> <p>Accept a connection. The socket must be bound to an address and listening for connections. The return value is a pair (conn,...
2
1,123
imacros javascript conditional skip of data extract
<p>while executing below loop fails as soon as a advertisement is encountered. Site purposefully put random advertisement. is it possible to handle it with #EANF# not sure how to code it. please help. Something like this. </p> <pre><code>//if(text=="#EANF#" || text=="undefined" || text==null || text=="" ) //{ ////hand...
2
1,179
Class 'entities\User' does not exist ?
<p>I have created a new project in folder [docx] and generated entities from existing database in the folder entities. Here is fetch.php code:</p> <pre><code>&lt;?php // bootstrap.php // replace with file to your own project bootstrap require_once 'bootstrap.php'; $em-&gt;getConfiguration()-&gt;addEntityNamespace('...
2
1,405
Electron Forge & Webpack with multiple windows (Uncaugh expection with built package)
<p>I'm completely stuck on this, I've been browsing all over looking for a similar problem but I can't find anything anywhere.</p> <p>I have a electron application with 2 windows, built in typescript. they run perfectly in Dev environment. Once I run: npm run make. I got an error saying two chunks are Conflict: Multipl...
2
1,140
R-Using a list of Indices to calculate the mean of a group of values in several columns of a data frame
<p>i have a list of indices that i want to use to calculate a mean of a fix number of rows starting from my index. Ideally, i would find a way to do this for several columns at the same time.</p> <p>My list of indices looks something like this:</p> <pre><code>a = seq(1,100,10) </code></pre> <p>My data frame is simil...
2
1,176
Google sign in using firebase working on emulator but not on real device?
<p>Sign in works perfectly in emulator but it is always failing on my real android phones.<br> <code>task.isSuccessful()</code> always returns a false result in my real device but no problem when I am using the emulator.</p> <pre><code>package com.inc.mountzoft.goldencompass; import android.content.Intent; import and...
2
2,012
get global tcl array in python or c++
<p>I need to import existing information from tcl files (saved variables in tcl) but I am not familiar with tcl really at all. I need a simple solutions (short), it does not need to be super robust. I have a tcl file that defines a global. Here is a small snippet:</p> <p>test.tcl:</p> <pre><code>global gP set gP(1,1...
2
1,090
How to get value from react-select in a functional component React
<p>I am making use of react-select for the first time in a form. I am having issues getting the value from the select input and send it via Axios to backend.</p> <pre><code> const options=[ { value: 'Telecomms', label: 'Telecomms' }, { value: 'Construction', label: 'Construction' }, { value: 'Manufacturing', labe...
2
1,048
How to repeat 'onclick' function with AJAX within ID?
<p>I'm trying to run new AJAX upload and insert a data element from the <code>onClick</code> of an item to multirow , the problem is it work for first row and when I add another row the function is not working when I click on it .</p> <p>HTML code is :</p> <pre><code> &lt;table id="images" class="list"&gt; ...
2
2,680
Unable to parse JSON data with PHP
<p>I'm trying to parse some JSON data for an application I'm building, but I can't seem to get it to work. I have used this code before, but it isn't working on this API. Here's my code.</p> <pre><code>&lt;?php $json_string = file_get_contents("http://api.genius.com/songs/542383?access_token=MY_ACCESS_TOKEN"); ...
2
11,950
How to authorize the menu from web page using the spring boot security sec:authorize-url or using EL expressions?
<p>I'm working on the spring boot security using basic authentication.I have configured basic application security layer and i can authenticate the user.But,now i would like to know how to authorize the user to show only the granted operations without hard coding the role names in client side or server side code using ...
2
1,753
complex query to mongodb database $eq ObjectID
<p>Hi Can someone tell me why I cant $eq author with objectId?</p> <pre><code>db.boards.aggregate( [ { $project: { "boardcards": { $reduce: { input: "$lists.cards", initialValue: [ ], in: { $concatArrays: [ "$$value", { $filter: { ...
2
1,936
Custom List View doesn't call Getview () method .
<p>I don't know why but my Custom List view is not working . When I call ListView.setadapter , my adapter don't call getView() method . I figured this problem about 2 day straight But I don't know why . No Error No working . Help me Pls . This is serious</p> <p>This is my <strong>Custom Adapter</strong> Code : </p> <...
2
3,906
Three.js OBJ model not showing up
<p>Hey guys so I tried to get the 3D OBJ file to load with a Loader and the console says the 3D model and texture have been loaded but nothing shows up on the screen. I pulled the 3D model and texture from the three.js files. I have no idea what I'm doing wrong. Here is the zip file if that helps any: <a href="https...
2
1,217
Hibernate bean in Spring fails to load throwing java.lang.NoSuchMethodError
<p>I am very new in Spring 4.2.3. I stuck in configuring Hibernate 4.3.11 in my Spring project. Following are the error stack trace for my project configuration</p> <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.aop.framework.autoproxy.AutoProxyUtils.determineTargetClass(Lorg/sp...
2
5,720
Change position Product_Tittle Woocommerce
<p>I have a problem regarding the title position of some woocommerce products.<br> They are next to the image of my product and I would like to put it on the top of the image. </p> <p>How can I do this?</p> <pre><code>&lt;figcaption&gt; &lt;div class="shop-loop-product-info"&gt; &lt;h3 class="product_tit...
2
1,041
JsonMappingException: (was NullPointerException) (through reference chain: com.domain.ProfitStrategyInputMsg["productBasicInfo"])
<blockquote> <p>org.codehaus.jackson.map.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: com.domain.profit.ProfitStrategyInputMsg["productBasicInfo"])</p> </blockquote> <pre><code>public List&lt;ProfitStrategyInputMsg&gt; buiInputParams() { String paramStragetyA = "WwogICAge...
2
2,871
Maintaining checkbox states in listview with CursorAdapter
<p>For my Android project, I have a listview which has a checkbox for every item. The data is loaded from an SQLite database by using a CursorAdapter class. However, whenever I scroll, the checkbox positions will get moved and get carried down to the next part of the listview. How can I fix this problem? <a href="https...
2
2,239
netCDF grid file: Extracting information from 1D array using 2D values
<p>I am trying to work in Python 3 with topography/bathymetry-information (basically a grid containing x [longitude in decimal degrees], y [latitude in decimal degrees] and z [meter]). </p> <p>The grid file has the extension .nc and is therefore a netCDF-file. Normally I would use it in mapping tools like Generic Mapp...
2
1,403
Radio button with ng-repeat not always initialized
<p>I want a list of radio buttons to be modified at runtime when other buttons are clicked. When the list of radio buttons has been modified, the first radio button of the list should always be selected by default. Additionnally, the visibility of some divs depends on which radio button is currently selected.</p> <p>H...
2
1,231
Creating an Interpreter in Haskell
<p>So, I need to write a function <code>evalS :: Statement -&gt; Store -&gt; Store</code> that takes as input a statement and a store and returns a possibly modified store.</p> <p>The following case has been given to me:</p> <pre><code>evalS w@(While e s1) s = case (evalE e s) of (BoolVal Tr...
2
3,829
swift reload data automatically
<p>Hi I am trying to figure out how to make it so that all my data for my timeline can reload on its own. Here is my current code for the whole TimeLineViewController</p> <pre><code>import UIKit import CoreData class TimelineTableViewController: UITableViewController, UIImagePickerControllerDelegate, UINavigationCont...
2
2,125
Java: Updating JTable with lots of rows in the background
<p>I am writing a simple Java Swing utility that will read messages from an MQ JMS server and display them in a JTable. </p> <pre><code>private void getMessages() { try { if (null != Queue) { Queue.close(); //Close previous queue connection if there is one. } ...
2
2,965
How should I handle blocking operations when using scala actors?
<p>I started learning the scala actors framework about two days ago. To make the ideas concrete in my mind, I decided to implement a TCP based echo server that could handle multiple simultaneous connections.</p> <p>Here is the code for the echo server (error handling not included):</p> <pre><code>class EchoServer ext...
2
1,302
Why does react-grid-gallery display my images twice?
<p>I am trying to create an image gallery using react-grid-gallery. I used the example code to quickly get something on the page. However, the tag either displays nothing or if I add a div with my images I then get a gallery displayed twice. It works but it obviously does not look very good overall.</p> <pre><code> ...
2
1,669
Create Rounded corners Hexagon ImageView shape in Android
<p><a href="https://i.stack.imgur.com/qLJEk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qLJEk.png" alt="Hexagon Imageview"></a></p> <p>I want rounded corners as shown in above image. How to create this type of hexagone in android. I try many this but its not work like i want.</p> <p>I try bello...
2
1,597
Passport.js: Cannot read property 'username' of undefined (Node)
<p>I'm trying to implement <code>passport-local</code> but I keep getting this error when I test it with Postman: <code>Cannot read property 'username' of undefined</code></p> <p>Here is my model, <code>User.js</code>:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"...
2
3,170
Plotting multiple conditioned histograms on the same page in R
<p>SO I am trying to plot multiple conditioned histograms in one page. I have three numeric predictors, AFE, ZCR, and ACC, and they need to be conditioned on class either 0 or 1.</p> <p>When I do it for a single variable:</p> <pre><code>histogram(myData.toplot$Class ~ myData.toplot$AFE | myData.toplot$Class) </code><...
2
1,271
Is it possible to add dropzone form by onclick javascript
<p>Hello I am working with <code>[dropzone.js]</code> (drag-drop files library) I want the user could click some button and the Dropzone form will be added. (I have already 1 dropzone form and after user click add, the second Dropzone form will be shown.)</p> <p>but my problem is after clicking add button, dropzone f...
2
1,560
tf.estimator.Estimator error message IndexError: tuple index out of range
<p>I am new to Tensorflow and Python. I am attempting to train a deep network to use as a simple object detector with Tensorflow using my own images, primarily following the tutorials provided on Tensorflow.org. My operating system is Mac OS X Sierra 10.12.6, and I am using Python 3.6 through Anaconda 3. I have written...
2
2,267
Application not able to connect to smtp host and port 587 using docker
<p>I am new to docker. I need your help in resolving one of the docker issue which I am facing for past 1 week. I have a Spring Boot application which connects to a company email server using SMTP host and SMTP port to send out emails. The application is working fine when it is working as a normal java program locally....
2
1,645
Freeglut error: fgInitGL2: fghGenBuffers is NULL
<p>I'm transferring a program from OSX to Windows, but one error is still nagging me. The error occurs during run-time in gdb. Compiling and linking goes all fine.</p> <blockquote> <p>freeglut (C:\path\to\file.exe): fgInitGL2: fghGenBuffers is NULL</p> </blockquote> <p>Outside the GDB environment it gives an APPCRA...
2
1,128