title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Deployment invalid Terraform + Kubernetes: spec.template.spec.containers[0].envFrom: Invalid value: "" | <p>I'm experimenting with terraform to deploy k8s resources.</p>
<p>I created a mongodb deployment</p>
<pre><code>provider "kubernetes" {
config_context = "kubernetes-admin@kubernetes"
}
resource "kubernetes_namespace" "demo-namespace" {
metadata {
name = "my-demo-n... | 2 | 1,559 |
Rx Exception Handling Fail | <p>I'm using RxJava with a retrofit to make API calls,</p>
<p>By using RxJava methods like <strong>flatMap</strong> and <strong>map</strong> I'm making API calls as well as performing DB operations in room database on the background thread.</p>
<p>My implementation is perfect and working fine if there is no error, bu... | 2 | 1,613 |
spring boot + JPA + mysql, unable to retrieve result set | <p>i am new to spring boot, having basic knowledge of java. i am trying to build a micro-service to retrieve data from mySQL database. below are the code details.</p>
<p>i am able to retrieve data from the same table using standalone JDBC class. request to help.</p>
<p><strong>- Entity class</strong></p>
<pre><code>... | 2 | 3,506 |
Change different images on button click android | <p>So, I want to create an Image Switcher which contains two button 'next' and 'previous'. Whenever I click on the 'next' button it will switch to the next image and 'previous' button will switch to the previous image. I am using an array to store all the images url, let's say I have image1 and when I click on the 'nex... | 2 | 1,647 |
Why are hanging SSH commands waiting for output from a pipe with both ends open in 'sshd' on the server? | <p>This is on StackOverflow as opposed to SuperUser/ServerFault since it has to do with the syscalls and OS interactions being performed by sshd, not the problem I'm having <em>using</em> SSH (though assistance with that is appreciated, too :p).</p>
<p><strong>Context:</strong></p>
<p>I invoke a complex series of scr... | 2 | 1,412 |
Why does Python's socket.getfqdn() return a long string that looks like an IPv6 host rather than what `hostname -f` returns? | <p>Why does Python's <code>socket.getfqdn()</code> return <code>'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa'</code> rather than matt-mmf-macbook.local?</p>
<pre><code>mlm@matt-mmf-macbook.local:~
$ python
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. b... | 2 | 1,855 |
scala minecraft forgemod 'gradle runClient' gives runtime exception | <p>I'm trying to use akka inside my scala based mod.</p>
<p>The when testing using "gradle runClient" it gives errors, best I can tell its missing the akka library at runtime. I don't see how to add akka library though.</p>
<p>If it helps my project is here: <a href="https://github.com/tesract/NilCraft" rel="nofollo... | 2 | 9,110 |
How to solve ENOENT: no such file or directory, open '\package.json' with ngx-build-plus in workspace with multiple projects? | <p>In my workspace described below, I fail to build project/plugins' that doesn't have package.json with <a href="https://www.npmjs.com/package/ngx-build-plus" rel="nofollow noreferrer">ngx-build-plus</a>. If I change back to default builder it works perfectly ok. Workspace has following structure (most items omitted f... | 2 | 3,564 |
How to return multiple List<String> via AsyncTask in android? | <p>I have created an <code>AsynTaskInsideActivity</code> class that extends <code>AsyncTask<Void, Void, List<String>></code> within the <code>MainActivity</code> as an inner class. I am using this <code>AsynTaskInsideActivity</code> for getting all the records from the <code>location</code> table. This loca... | 2 | 1,710 |
Using a basic fade-in animation when Visibility of a UIElement is changed to "Visible" causes screen to flicker momentarily | <p>I'm having a frustrating problem running a simple fade in animation in my app.</p>
<p>My app consists of three pivots.</p>
<p>Each pivot contains three sections that have their detailed information "Collapsed" by default and that becomes "Visible" if you tap anywhere on the section.</p>
<p>When you tap to expand ... | 2 | 4,381 |
Error using data augmentation options in the Object Detection API | <p>I am trying to use the data_augmentation_options in the .config files to train a network, specifically a ssd_mobilenet_v1, but when I activate the option random_adjust_brightness, I get the error message pasted below very quickly (I activate the option after the step 110000).</p>
<p>I tried reducing the default val... | 2 | 1,183 |
WSO2 ESB sample 440 fails (JSON/XML proxy) | <p>wso2esb-4.0.3</p>
<p>I am able to execute other samples. I do have ESB and StockService running. Looks like the JSON transformation is happening, but that the jsonclient can't handle a JSON response.</p>
<pre><code>ant jsonclient -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://loc... | 2 | 1,296 |
Python raytracing distorts object shapes when close to the camera | <p><strong>The Problem</strong></p>
<p>I recently found someone's awesome little pure-Python raytracing script <a href="http://pastebin.com/f8f5ghjz" rel="nofollow noreferrer">from this link</a>, and extended it a little bit for more convenient functions. However, sometimes it distorts the shapes of the objects and I'... | 2 | 6,403 |
Django filter queryset __in for *every* item in list (2.0) | <p>I've already read <a href="https://stackoverflow.com/questions/31482723/django-django-filter-queryset-for-each-query-in-list">this</a> and <a href="https://stackoverflow.com/questions/8618068/django-filter-queryset-in-for-every-item-in-list">this</a>, but they don't solve my problem because they make a final "count"... | 2 | 1,063 |
Android application crash after using action_view intent | <p>I have a strange error , Here's my code </p>
<pre><code>String a;
String b;
a="http://website1.com/abcabc1";
String[] separated = a.split("/");
b = separated[3];
String url = "www.website2.com/" + b;
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
finish();
</code></pre>
<p... | 2 | 1,668 |
Find index of sub document in array of object | <p>I am developing a application in Node.js with use of mongodb and mongoose. I want to get the index of object from array of object returned by mongoose the data is given below, how can I get the index from details Array where record contains particular id like </p>
<blockquote>
<p>_id: 5334032ad1c4d2d616ad3a47</p>... | 2 | 1,141 |
Firebase RecyclerView Not Loading New Data | <p>I am trying to create a real-time RecyclerView every time a user adds an item to a certain Database reference in Firebase. Here is my model class:</p>
<pre><code>@IgnoreExtraProperties
public class Poll {
private String question;
private String image_URL;
public Poll() {
}
public Poll(String Question, String Ima... | 2 | 2,698 |
Incorrect timestamp by date processor in elasticsearch filebeat | <p>I am getting wrong value in @timestamp field for elasticsearch/filebeat.
My filebeat pipeline definition</p>
<pre><code> curl -H 'Content-Type: application/json' -XPUT "logger:9200/_ingest/pipeline/app_log" -d'
{
"description" : "Ingest pipeline for Jetty server log",
"processors" : [
{
... | 2 | 1,649 |
Script works as VBS but not HTML | <p>I have a script that shows a filtered list of what groups a particular AD user is a member of. It works <strong>perfectly fine</strong> as a VBS file, but when imported into either an HTA or HTML file it gives me a <em>"The search filter cannot be recognized"</em> error message when running the <em>"objRecordSet.Mov... | 2 | 1,667 |
RuntimeException + ConnectException = Android app crashes (KSOAP2) | <p>My Android Client which is supposed to connect to the Webservice crashes. I know Im connecting to HTTP in my main thread but I added two lines that resolve the problem (temporarily). I will add the AsyncTask later. </p>
<p>MainActivity:</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
s... | 2 | 4,798 |
Module parse failed: Unexpected token - React | <p>i am trying to create a react component as a npm package and was following this link <a href="https://medium.com/quick-code/publish-your-own-react-component-as-npm-package-under-5-minutes-8a47f0cb92b9" rel="nofollow noreferrer">https://medium.com/quick-code/publish-your-own-react-component-as-npm-package-under-5-min... | 2 | 1,346 |
How to package tensorflow with pyinstaller on MacOSX? | <p>I am distributing a python program that contains tensorflow. On OSX, python 2.7, I have no errors loading libraries and running tensorflow. When using pyinstaller to create an executable it fails with a PBR error.</p>
<p>We can reduce this problem down to a simple (hopefully reproducible) error.</p>
<p>Here is our... | 2 | 1,498 |
How to add rows to CollectionType in Symfony2 Form? | <p>I'm trying to create a "complex form" using Symfony2. One field of this form is created from another "simple form", and, 6 fields of the form are created from another "simple form" (so it's a repeated field, yes). It's like a "Form of forms" or embedded form.</p>
<p>The following code correspond to the first "simpl... | 2 | 1,714 |
Play Mailer plugin with Play 2.5 | <p>I am struggling with play mailer plugin. I found many references to configure play-mailer plugin to send email using gmail, but none worked.</p>
<p>Here are the details -</p>
<ol>
<li>Play 2.5 </li>
<li>Scala 2.11</li>
<li>mailer plugin - <code>"com.typesafe.play" %% "play-mailer" % "5.0.0"</code></li>
</ol>
<p>A... | 2 | 1,768 |
Image highlight (hover state) on active section while scrolling? | <p>I have these icons above each section on my page (the largish circular icons, please see example: <a href="http://pftest.fhero.net" rel="nofollow">http://pftest.fhero.net</a>) with colored hover states... what I would really love to do is have them change to the active hover states as the user scrolls to each sectio... | 2 | 1,783 |
Firebase use endAt if timestamp field | <p>I have records with this fields:</p>
<pre><code>age: 25
timestamp: 1484089199472
</code></pre>
<p>This records inserted by:</p>
<pre><code>@Exclude
public Map<String, Object> toMap() {
HashMap<String, Object> result = new HashMap<>();
result.put("age", age);
result.put("timestamp", ... | 2 | 1,259 |
How to add extra column to pivot table many to many | <p>I have simple <code>items</code> table.</p>
<p>Example:</p>
<p>Paper. Made from bamboo and cotton (if google does not lie).</p>
<p>Also, a book made from paper.</p>
<p>So paper parent of bamboo and cotton also child of book.</p>
<p>I think I can explain my table structure in two words.</p>
<p>And now my code. All... | 2 | 1,450 |
Spring Boot JPA Pagination Exception | <p>I am implementing pagination for my service where limit and offset comes as a part of request body. When I have set these values in the PageRequest at the Service level, I am getting the following error and the implementation</p>
<pre><code>Caused by: java.lang.IllegalArgumentException: Either use @Param on all par... | 2 | 1,471 |
PHP curl unable to access other servers via VPN | <p>I have a server connected to my company via OpenVPN and I am trying to retrieve JSON from another server using PHP's curl command.</p>
<p>Running the most stripped back version of the code in PHP's interactive mode from the command line (php -a), works fine:</p>
<pre><code>$ch = curl_init();
curl_setopt($ch, CURLO... | 2 | 1,043 |
JasperReportBuilder HTML row height | <p>I am building a report with <em>JasperReportBuilder</em> from a JDBC data source and afterward I export it to HTML by calling the <em>toHtml</em> method with a <em>JasperHtmlExporterBuilder</em> object parameter. I have been trying to get rid of extra space that exists above the text in each of my rows, column heade... | 2 | 1,105 |
Clock Display in BlueJ with GUI | <p>Currently the display works fine. I coded the minutes run act as seconds for simulation clock display. It's works fine but when it is 12:59, it should be 1 instead of 0. I couldn't figure it out to remove 00:00 should be 01:00 after 12:59. </p>
<p>clock.java</p>
<pre><code>import java.awt.*;
import java.awt.event.... | 2 | 3,828 |
How to enter text in TinyMCE editor with Selenium IDE in firefox 14 | <p>I made a test which is working in newer or older firefox versions, slower or faster internet connection (at least I say that internet of my virtual machine in vmware is slow), but something and I don't know what causes a failure after typeKeys command in another computer. Somehow text is not written in the TinyMCE e... | 2 | 1,865 |
PIG - equivalent of like | <p>I want to load only specific partitions in PIG, the equivalent of what I want to do in hive:</p>
<pre><code>hive>
select trim(column) from db.table where partition_code like 'CALL_DETAIL_1905%';
</code></pre>
<p>I have tried matches in PIG</p>
<pre><code>data= LOAD 'db.table' USING org.apache.hive.hcatalog... | 2 | 1,668 |
EntityManager.find behavior with an object containing 2 id as primary key | <p>I'm starting to step into the Java world and I'm having troubles to understand this.</p>
<p>I'm using JPA to interact with my database with JPQL.</p>
<p>I have a persistent class like this one :</p>
<pre><code>@Entity
@Table(name="C_A_T")
@NamedQuery(name="CAT.findAll", query="SELECT c FROM CAT c")
public class C... | 2 | 1,086 |
ServiceStack metadata descriptions missing | <p>In a given example code below the metadata page never gets the description specified in </p>
<pre class="lang-cs prettyprint-override"><code>[Description("GET account, all or by list of groups or by list of logins")]
</code></pre>
<p>Is there a special config that needs to be set in order for descriptions to show... | 2 | 1,186 |
Is there a way to get the time of the TimePicker without using the TimePickerDialog? | <p>I want to know if there is a way to get the time that the user has set in a TimePicker on the screen without using a Dialog. I don't see the point in creating a button that will pop up a TimePickerDialog when I can just have the TimePicker on the screen. I.e. There is no point in having two TimePickers as can be see... | 2 | 1,040 |
Uncaught Error: Must set options.password in Meteor | <p>I am trying to create multiple users so I did a sample example of "Create Users" using <code>Accounts.createUser</code>. I have added a packages <code>accounts-base</code> and <code>accounts-password</code> also. But I got an error <code>Must set options.password in Meteor</code>. I have no idea what happening. Chec... | 2 | 1,823 |
How to send or pass class to context variable? | <p>I am getting this error:</p>
<pre><code>Description Resource Path Location Type
Swipeactivity cannot be resolved to a variable SwipeActivity.java /Copy of TD GridView/src/com/td/gridview line 32 Java Problem
</code></pre>
<p><strong>code is</strong> </p>
<pre><code>int[] icons = MainActivity.ICONS; ... | 2 | 5,499 |
FactoryGirl-created record is not in database during test | <p>I'm trying to save users to the database and test that I can view the user's profile page with the following spec:</p>
<pre><code>require 'spec_helper'
describe "User pages" do
subject { page }
let(:user) { create(:user) }
before { sign_in user }
describe "profile page" do
before { visit '/#/user' }... | 2 | 1,461 |
PyQt Cannot Read Stdout from QProcess Program | <p>The app is a GUI wrapper for a Windows command line program. A button <code>starBbtn</code> creates a new process that runs <a href="https://github.com/fireice-uk/xmr-stak-cpu/releases/download/v1.3.0-1.5.0/xmr-stak-cpu-win64.zip" rel="nofollow noreferrer">the CLI program</a>. The output from the CLI program is prin... | 2 | 4,067 |
Get AngularJS app to display modal on click | <p>I'm listing my schedule entries, now I'm trying to display a modal when clicking on edit for a specific entry. My goal is to be able to edit the values of my entries. But first, can't get the modal to even display</p>
<p>See <a href="http://plnkr.co/edit/nBkQkLCQx3riqOopeQy1" rel="nofollow">my plunker</a> or code b... | 2 | 2,110 |
Segmentation fault in Ns2 program | <p>I have referred to a program of ns2 the program is giving me Segmentation fault(Core Dumped) when i changed this -> $ns at 0.5 “$cbr0 start” to this->$ns at 0.5 "$cbr0 start". Are the "" any problem .If i change "" to “” following is the error</p>
<p>ERRORS</p>
<p>(_o5 cmd line 1)
invoked from within
"_o5 cmd... | 2 | 1,202 |
Saving iTextSharp pdf into byte and download with save dialog | <p>I'm trying to create pdf using iTextSharp and convert it into byte and download the pdf file with a save dialog. I have used MemoryStream to convert the pdf into byte and used HttpResponse Page method to download the back the pdf file but it don't seem to be working. It don't not have any error and nothing happen af... | 2 | 2,347 |
Send login data to the server using AngularJS/Ionic | <p>I'm trying to send the existing user data on the server with the <code>$http</code>-service of angularjs. The user data, so (<code>loginData</code>), are created and existing on the backend server. With the information of the user I would like to log in on my mobil phone. How can I compare local entered data with th... | 2 | 1,265 |
JBOSS Login with Oracle DBMS: No matching username found in Principals | <p>i have a Problem with the Login to my Java Application on JBOSS.
I use the Database Login Module with JBOSS 7.1.1<br />
The test enviroment was on a MySQL Database. Everything worked great and without Problems. The Application deployed correctly and i could login to my application.<br />
Now for production, the DBMS... | 2 | 2,513 |
Adding UTC time axis to plot with local time in time format | <p>I have a DataFrame plot which looks something like this </p>
<p><a href="https://i.stack.imgur.com/gl6cP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gl6cP.png" alt="enter image description here"></a></p>
<p>The index on the plotted DataFrame is as follows </p>
<pre><code>In[102]: res.index
... | 2 | 1,254 |
Passenger with nginx not caching properly | <p>When I go an action on the website, say signup or create a record, nginx renders the cached version of page before the action, however when I refresh I see the right page.</p>
<p>I've got latest passenger running with nginx with conf:</p>
<pre><code>pid /opt/nginx/logs/nginx.pid;
# Run as the nginx user
user root;... | 2 | 1,173 |
Vue js using scope-slot and trying to use a property from within but having no visibility | <p>I am using vue form wizard <a href="https://github.com/BinarCode/vue-form-wizard" rel="nofollow noreferrer">https://github.com/BinarCode/vue-form-wizard</a> (and vue form generator <a href="https://github.com/vue-generators/vue-form-generator" rel="nofollow noreferrer">https://github.com/vue-generators/vue-form-gen... | 2 | 4,275 |
Why i'm getting OutOfMemoryException even if i release/dispose the Bitmap? | <p>I have this class where i using the code to take screenshots:</p>
<pre><code>using System;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Drawing.Imaging;
namespace WindowsFormsApplication1
{
/// <summary>
/// Provides functions to capture the entire screen, or a particular ... | 2 | 5,033 |
run shell script on multiple remote machines | <p>WARNING: newbie with bash shell scripting.</p>
<p>I've created the script to connect to multiple remote machines, one by one, check if a certain file has certain text already in it, if it does, move to the next machine and make the same check, if not, append the text to the file, then move to the next machine.</p>
... | 2 | 1,057 |
Multiple Authentication Schemes ASPNET Core 3 | <p><strong>See Update below</strong></p>
<p>I'm using Azure AD B2C and I'd like my users to be able to log in thru my web app as well as be able to utilize JWT bearer tokens and call Web API methods from a mobile app.</p>
<p>I can get either authentication scheme to work by itself. For example, in my startup.cs I can d... | 2 | 2,468 |
Author name in Facebook link previews not displaying | <p>I’m trying to get the Facebook link sharing meta tags to work for my Blogger site, and though I got link previews mostly working (images, title, custom description, etc.), I cannot get the author link to display.</p>
<p>Here’s a screencap showing what I’m referring to:</p>
<p><a href="https://i.stack.imgur.com/jFE... | 2 | 2,980 |
error: 'track_t' was not declared in this scope | <p>I'm fiddling with an Arduino project where I've got these structs in my main file:</p>
<pre><code>struct gpsCoord_t {
long latitude;
long longitude;
};
struct track_t {
char code[4];
gpsCoord_t bounds[4];
gpsCoord_t points[4];
};
</code></pre>
<p>Next to that I've got a function to dump variables of th... | 2 | 1,406 |
I get an error "CMessage' objects doesn't apply to a 'str' object" when I am trying to parse a dict-structure with repeating elements | <p>Can you help me understand why this is crashing: I'm trying to use the protobuf ParseDict function to turn a structure of Python objects into single Protocol Buffer object.</p>
<p>As an experiment, I tried to make some protobuf instances, turn them into a dictionary structure and then turn them back into protobufs.<... | 2 | 6,363 |
fargate failing on docker pull in private subnet | <p>I am having trouble deploying a fargate cluster, and it is failing on the docker pull image with error "CannotPullContainerError". I am creating the stack with cloudformation, which is not optional, and it creates the full stack, but fails when trying to start the task based on the above error. </p>
<p>I have attac... | 2 | 2,393 |
How to put mutable Vector into State Monad | <p>I wrote small program in haskell to count all ocurences of Int values in Tree using State Monad with Vector:</p>
<pre><code>import Data.Vector
import Control.Monad.State
import Control.Monad.Identity
data Tree a = Null | Node (Tree a) a (Tree a) deriving Show
main :: IO ()
main = do
print $ runTraverse (Node ... | 2 | 1,786 |
Default localhost can't be accessed after installing virtual hosts on WAMP | <p>I'll really appreciate a little help with a problem I have been struggling with all day long... I installed WordPress locally using WAMP and everything worked fine. I created a folder inside C:/wamp/www an named it wordpress.
I was able to access localhost only by typing localhost on the browser's URL and I acces... | 2 | 2,583 |
How to prevent HTTP 404 for a custom action in an odata controller? | <p>I have an <code>ASP.Net</code> <code>WebApi2</code> project hosting odata both <code>ApiController</code> and <code>ODataController</code>. </p>
<p>And I want to add a custom action in an <code>ODataController</code>. </p>
<p>I saw this seems to be achievable by either adding <code>[HttpPost]</code> attribute on... | 2 | 1,304 |
How to use express api gateway in a docker swarm mode? | <p>I have a few simple REST api services implemented in Express.These services run in docker containers in a swarm mode.Also,I am trying to use express-api gateway with these services.The express api gateway also runs in a container as part of the docker swarm.Following is the Dockercompose file</p>
<pre><code> versio... | 2 | 1,165 |
How to update nested objects using Nest Elasticsearch? | <p>I have product index which for simplicity has two fields Id and ProductAttributes as nested object defined as following:</p>
<pre><code>public class ProductType
{
public Guid Id { get; set; }
public List<ProductAttribute> ProductAttributes { get; set; }
}
public class ProductAttribute
{
public ... | 2 | 1,417 |
Unable to display the results of OCR | <p>I have this mainActivity java file which I would like to display back the results of the OCR. </p>
<ol>
<li><p>ERROR: Creation of directory /storage/emulated/0/TesseractSample/tessdata failed, check does Android Manifest have permission to write to external storage.</p></li>
<li><p>Unable to copy files to tessdata ... | 2 | 3,332 |
how to see a checkbox is not checked | <p>I want to alert user if they haven't checked any checkbox, and return to the form
After they checked at least one checkbox, proceed into the next page
How can I do that ?</p>
<pre><code><input type="checkbox" name="pay[]" value="
<?php
echo $DateArr[$record_count].";";
echo $invoiceArr[$record_c... | 2 | 1,781 |
Google Drive API for android requestSync always returns "sync request limit exceeded" | <p>I am using google drive api for android to access files in google drive. When a new file is uploaded it takes anywhere from 3 to 15 minutes for the file to be accessible by my app. I tried to add requestSync to occasionally force a sync but every time I run it I get "sync request limit exceeded". Is there something ... | 2 | 2,048 |
Linq: Join vs Include/ThenInclude in Entity Framework Core | <p>I am working on a project with SQL Server and EF Core v3.</p>
<p>I have 4 tables related to each other. Here are my tables schemes:</p>
<p><a href="https://i.stack.imgur.com/IO205.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IO205.jpg" alt="enter image description here"></a></p>
<p>I wrote 2... | 2 | 4,134 |
Altair - Issues setting-up | <p>I only have four-days of python experience. I am running the latest release of Anaconda 1.9.2;</p>
<p>I am trying to run altair, for this I followed the official installation <a href="https://altair-viz.github.io/getting_started/installation.html" rel="nofollow noreferrer">instructions</a>:</p>
<pre><code>conda in... | 2 | 1,692 |
Issue with migrate on server | <p>I have deployed my django project to a digital ocean server and sucessfully installed all requirements. However, when I run migrate, after makemigrations, I get the following exception:</p>
<pre><code>django.db.utils.ProgrammingError: relation "auth_permission" already exists
Operations to perform:
Synchronize u... | 2 | 1,168 |
Predict using a single image tensorflow , keras | <p>I'm trying to build and train a model to predict American Sign Language (using Sign Language MNIST dataset). So far I have managed to build the model and used the build model to predict train dataset. Accuracy is also above 70 % in train images. Now I want to predict using a single image using the trained model. The... | 2 | 1,510 |
Can Q_GADGET be the property of other Q_GADGET? | <p>When I tried to pass such object in qml to some QML component property, it's just crashed in release or hung up in debug on:</p>
<pre><code>Currency& operator=(const Currency& that) = default;
</code></pre>
<p>currency.h:</p>
<pre><code>#ifndef CURRENCY_H
#define CURRENCY_H
#include <QObject>
clas... | 2 | 1,651 |
scala.tools.reflect.ToolBoxError exception | <p>I am stuck on a problem and can't resolve it.
Today, I get an error while building the project. This error is described in topic:
<a href="https://stackoverflow.com/questions/30088274/why-do-i-get-conflicting-cross-version-in-sbt-on-one-environment-but-not-another">Why do I get conflicting cross-version in sbt on o... | 2 | 2,366 |
"No input file specified" nginx does not interpret php | <p>I have replaced in PHP the configuration from apache to nginx, and this is what my nginx config looks like</p>
<pre><code>user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/... | 2 | 1,170 |
To filter out the missing keys after comparing two json objects(used js filter but doesnt work for all the scenarios) | <p>I have a functionality where I enable the user to edit the json object and then validate it in my code, so I have 2 json objects to compare and validate(the initial and the edited one) , I am pushing all the keys from json object into 2 different arrays and then comparing the first array to second and filtering out ... | 2 | 1,336 |
Show data and radio button and save selected value of radio button with data | <p>Hi have a data base as below the data is fetching is From PHP is Working but have a problem need to show radio button against all <strong>StudentFirstName</strong> as shown below and send back the data to another Table database of respective selected radio button value. on button click register Id can be used as pr... | 2 | 1,105 |
Different QR decomposition results with numpy and CULA | <p>I'm performing QR decomposition in two different ways: using standard numpy method and using GEQRF LAPACK function implemented in CULA library. Here is simple example in python (PyCULA used to access CULA):</p>
<pre><code>from PyCULA.cula import culaInitialize,culaShutdown
from PyCULA.cula import gpu_geqrf, gpu_org... | 2 | 1,253 |
scala cake pattern - can I have multiple layers of cake? | <p>so say I have two dependencies in my app, a connection to some pub sub system, and a connection to a database. I can do something like</p>
<pre><code>trait DB {
def lookup(query:String):String
}
trait PubSub {
def subscribe(key:String, callback:String => Any)
}
</code></pre>
<p>then I can write my logi... | 2 | 1,702 |
Swift 3.1 Label in TableViewCell - unexpectedly found nil | <p>I'm trying to create two tableViews in one UIViewController. But when I'm trying to assign value to UILabel, getting an error: fatal error: unexpectedly found nil while unwrapping an Optional value</p>
<p>I wonder why, I have almost the same code for TableViewController with one tableView and it works with no issue... | 2 | 3,594 |
Crosswalk - Inflating class & Cie | <p>I'm currently working with Crosswalk ( previously on Cordova ). But I encounter a problem : when i'm creating just a simple XWalkView, nothing works..</p>
<p>I mean, I followed all guides, try multiples ways and nothing .
I'm working with <em>CrossWalk 12.41.296.9</em> ARM. <br></p>
<p>That way:</p>
<pre><code>pu... | 2 | 1,993 |
C# async named pipes wait for ever | <p>I am using asynchronous pipes and at some point both the server and the client wait for each other and do nothing. Here is my code:</p>
<h1>Server:</h1>
<pre><code>var buffer = new byte[BufferSize];
using (var server = new NamedPipeServerStream(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptio... | 2 | 1,092 |
error: ISO C++ forbids declaration of 'core' with no type | <p>I am getting error in the title. First of all, I did my search here in stackoverflow and in the google. There are many similar errors but I couldn't figure out how to solve the error. Some of the errors that I am getting with the error in the title are below. There are way many errors than the below errors but I jus... | 2 | 3,104 |
How to draw a tapered arc (curve with decreasing thickness) in OpenGL? | <p>I have the following code to draw an arbitrary arc:</p>
<pre><code>void CenteredArc::drawPolygonArc(float radius, float thickness, float startAngle, float arcAngle) {
float num_segments = 360.0;
float radiusOuter = radius + thickness / 2;
float radiusInner = radius - thickness / 2;
float theta = ar... | 2 | 1,099 |
Multiple time slots for Week days using ReactJS | <p>If anyone can help me to optimize the following code. I am trying to create a registration page where users can select their time availability for selected days. Users have option to select multiple rows for the same day.. The link for codesandbox is <a href="https://codesandbox.io/s/react-hook-helper-availability-0... | 2 | 3,477 |
How to calculate a moving average in MYSQL | <p>I have an application that stores stock quotes into my MySQL database.</p>
<p>I have a table called <code>stock_history</code>:</p>
<pre><code>mysql> desc stock_history;
+-------------------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Ext... | 2 | 1,064 |
Web service in clustered environment | <p>I have a web service running on two clusters and the loadbalancer decides where to forward the requests. Because of firewall rules the client machine can see the loadbalancer only and the two application servers can not see the loadbalancer. I have the following wsdl files on clusters:</p>
<pre><code><?xml versi... | 2 | 6,434 |
MongoDB Fails Because Key Too Large To Index | <p>I have been attempting to save a MongoDB document, and am getting a strange error concerning the key being too large to index. I have provided an example of a functional document below, as well as one that creates an error:</p>
<p>Functional:</p>
<pre><code>{ uniquenumber: 'Valid Until Addition of Restrictions',
... | 2 | 2,619 |
spring-boot-maven-plugin spring-boot.run.main-class is ignored (Groovy) | <p>I have a spring-boot application with 2 main class as follows. </p>
<pre><code>package org.arunm.springwebfluxrestservice.client
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.builder.SpringApplicationBuilder
@SpringBootApplication
class ReactiveClientApplicat... | 2 | 1,830 |
Can't update data in database with Codeigniter | <p>I can't update data in a record in CodeIgniter . Instead of updating it's adding new record in database table.'hotelres_id' is the primary key of my table.</p>
<p>I have posted the code below:-</p>
<p>Controller code for update:-</p>
<pre><code>function edit($id){
$this->load->model('hotel_reservation',... | 2 | 2,765 |
create multiple records with odoo 10 | <p>Here is my function create():</p>
<pre><code>api.model
def set_student_level(self):
for record in self:
if record.student_ids:
for student in record.student_ids:
update_student_ids = self.env['ecole.partner.school'].browse(self.env.context.get('active_ids'))
i... | 2 | 1,381 |
Broken pipe Error on send() function | <p>I need to make a small payload and server to download/upload or execute commands in the host computer.</p>
<p><strong>Error :</strong></p>
<pre><code>Traceback (most recent call last):
File "ServerCompletPAY.py", line 43, in <module>
a.send(command)
BrokenPipeError: [Errno 32] Broken pipe
</code></pre>... | 2 | 1,094 |
crbug/1173575, non-JS module files deprecated. VSC, "extension: live server" | <p>sorry, I speak spanish, I have a problem with google and other browsers, when I search for something in my two computers, cellphones(don´t load web) the console give me that bug: crbug/1173575, non-JS module files deprecated. (I can use instagram youtube and some the problem is google and some web sites)
I was learn... | 2 | 1,476 |
video fallback using object tag doesn't work with appendChild | <p>I've got a video player application that uses a variant of <a href="http://camendesign.com/code/video_for_everybody" rel="nofollow">video For everybody</a>. With a HTML5 <code><video></code> tag enclosing a <code><object></code> tag for flash falback on internet exploder. It all works well when I do this... | 2 | 1,090 |
Socket.io handshake with PHP websocket? | <p>I'm using a PHP web socket on my server side. I'm currently only testing the connection between the client and the server, so I haven't configured the socket yet to respond to specific events. This is what the basic template looks like:</p>
<pre><code>#!/php -q
<?php /* >php -q server.php */
error_reporti... | 2 | 2,847 |
WPF Menu Item with Button | <p>How can I add a <code>Button</code> to the menu items shown in the image below? I've tried creating a <code>MenuItem</code> template but when i use that the Header text of the menu item no longer displays what Binding am I doing wrong here?</p>
<p>Not using menuitem template</p>
<p><a href="https://i.stack.imgur.c... | 2 | 1,774 |
Listbox item shifting + Invalid postback or callback argument | <p>I have a listbox which has 2 buttons to shift the items in it up and down. If the items are binded before hand, it will be fine if I shift their position and save it to my database but if I were to add in a new item from a textbox --> shift its position either up or down --> save my form, I will get an error as show... | 2 | 1,299 |
Periodic connection reset while grpc streaming | <p>Server:</p>
<pre><code>override fun subscribe(request: Subscribe, responseObserver: StreamObserver<SubscriptionEvent>) {
sessionStore.grpcHandler(responseObserver, request.sessionId) { session ->
eventStream.stream(session.id)
.doOnNext {
try {
... | 2 | 2,728 |
JFX8 Mixed 2D and 3D, Scene Subscene incorrect drawing 3ds-file | <p>Have some problems with using mixed 2D and 3D when i'm implementing a SubScene to my Scene.
You can see the problem by clicking the links. Im using the Interactivemesh-Modelimporter.</p>
<p><a href="http://s3.postimg.org/nsef8o1f3/without_Subscene.png" rel="nofollow">http://s3.postimg.org/nsef8o1f3/without_Subscen... | 2 | 1,250 |
Maven release does not work with a grouping pom | <p>I want to release a project with the following structre (simplified):</p>
<p>parent<br>
--module A (packaging type: pom)</p>
<p>--module B (type jar)</p>
<p>--module C (type jar, uses A and B as dependency)</p>
<p>I want to release my project with the help of Jenkins. A build works fine.
But for the release it s... | 2 | 4,246 |
Configure Spring Security with Jersey REST and Swagger UI | <p>I have a Java Spring Boot Jersey (REST) application in which I want to add Spring Security (for LDAP in my case). Also, I'm using Swagger UI.</p>
<p>In my <code>application.yml</code> file I think I need to have <code>spring.jersey.type: filter</code> to serve static Swagger files.
However, the security doesn't see... | 2 | 1,060 |
Wav file recorded using AudioRecord sounds speeded up and skips frames when replaying | <p>I am using AudioRecord to read microphone data and RandomAccessFile to write it to a wav file. This is the code: </p>
<pre><code>public class MainActivity extends Activity {
AudioManager am = null;
AudioRecord record =null;
// AudioTrack track =null;
final int SAMPLE_FREQUENCY = 44100;
final in... | 2 | 3,999 |
How to deal with thousands of images for CNN training Keras | <p>I have ~10000k images that cannot fit in memory. So for now I can only read 1000 images and train on it... </p>
<p>My code is here :</p>
<pre><code>img_dir = "TrainingSet" # Enter Directory of all images
image_path = os.path.join(img_dir+"/images",'*.bmp')
files = glob.glob(image_path)
images = []
masks = []
cont... | 2 | 1,063 |
PHP Save multiple checkbox values | <p>I'm making a theme options for Wordpress and I'm trying to create a multiple checkbox option in one settings field. However only one checkbox value is being saved. After some searching around I've realized that multiple check-boxes need to be saved differently then single check-boxes. But i can't seem to find a stra... | 2 | 2,952 |
Spring MVC with OSGi - how to register new controllers - second part? | <p>I have maven web application, what used Spring Web MVC and I use in main app @RequestMapping annotation and </p>
<pre><code><context:component-scan
base-package="net.arturik.testosgispring.controllers" />
<mvc:annotation-driven />
</code></pre>
<p>in mvc-dispatcher-servlet.xml . All works OK, co... | 2 | 4,068 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.