title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
qTip2 validation does not disappear when input becomes valid
<p>I am trying to display ASP.net MVC client-side validation error messages in the form of <a href="http://craigsworks.com/projects/qtip2/" rel="nofollow">qTips</a> by changing the <code>onError</code> function in <code>jquery.validation.unobstrusive.js</code> similar to how it is done <a href="http://nickstips.wordpre...
2
1,368
magento - Can't retrieve entity config
<p>I have created two tables in my custom module. 1) wallets 2) sellerrequest When I load <code>Mage::getModel("wallets/wallets")-&gt;load();</code> it works properly. But when I try to load <code>Mage::getModel("wallets/sellerrequest")-&gt;load();</code> it gives error - <code>Can't retrieve entity config: wallet...
2
3,083
Jquery ajax call inside success function
<p>I'm trying to make a ajax call inside success function. Inside the second ajax call I'm appending some data to a hidden field. Just after the for loop, alert shows the hidden field contains data but when I put the alert out side the secod ajax call, it shows empty. why the hidden field gets cleared?</p> <pre><code>...
2
2,610
Recursive directives in angular 5 Dynamic modules (without circular dependencies)
<p>I am trying to load dynamic templates into an angular 5 app. First try was the examples in the angular docs, <a href="https://angular.io/guide/dynamic-component-loader" rel="nofollow noreferrer">https://angular.io/guide/dynamic-component-loader</a> This was a dead end because all it does is load static components dy...
2
1,412
Fragments not changing in Navigation Drawer
<p>Issue that I have is that whenever I try to change from Menu fragment in the navigation drawer <strong>(Which it shows my pageviewer and listview correctly)</strong> to Contacto fragment, it stays in the same page with both pageviewer and listview including a large text I added in <code>lay_contactofragment.xml</cod...
2
8,550
SetOnKeyListener not working with gridview
<p>I have tried a lot but could not get this thing working. I have some pictures in grid and I want to navigate it using a d-pad. For this purpose I'm implement the setOnKeyListerner but it gives me this error. "cannot resolve setOnKeyListener(anonymous method android.view.View.OnKeyListener)"</p> <pre><code>public cl...
2
1,599
Restarter must be created only during owner's initialization stage transition
<p>I am trying to implement transitions in my app for the first time, but it keeps crashing with this message</p> <p><code>Restarter must be created only during owner's initialization stage transition</code></p> <p>This is how I add the fragment:</p> <pre><code> activity.subFm.beginTransaction() ....
2
1,160
Change the back ground color of the text box inside the gridview in asp.net?
<p>I am working on a asp.net application where i am able to load the data from the SQL to the gridview in aspx page.User has the ability to edit and save the values in the gridview. My grid view has the itemtemplates where i have two colums with textboxes.I want to highlight all the cells with a different color which u...
2
1,031
Autocomplete widget in CakePHP 3.X
<p>I'm trying to implement a form for students to signup in my website with an autocomplete control for <em>Schools</em>. For this purpose, I went to the <strong>CakePHP 3.0</strong> reference and found a <a href="http://book.cakephp.org/3.0/en/views/helpers/form.html#creating-form-inputs" rel="nofollow noreferrer">tut...
2
1,837
Error lvalue required as unary '&' operand
<p>I have a problem while creating a thread in an Object. Error is <strong>lvalue required as unary '&amp;' operand</strong></p> <p>CPP File</p> <pre><code>#include "AirQ.h" static int i=0; AirQ::AirQ(int pinNo, bool input):Sensor("AIRQUALITY", "PPM",pinNo,input) { threadShouldRunAQ = true; this-&gt;buffe...
2
1,142
UDP receiver in C (using Winsock)
<p>I'm trying to learn socket programming in C using winsock libraries. I managed to knock up the following simple example:</p> <pre><code>#include&lt;stdio.h&gt; #include&lt;string.h&gt; #include&lt;stdlib.h&gt; #include&lt;WinSock2.h&gt; #include&lt;conio.h&gt; #pragma comment(lib, "ws2_32.lib") #define BUFFERSZ...
2
1,866
localStorage.getItem() always returns null even when value exists
<p>Im not sure If I am doing something wrong or if I have a typo somewhere, but I am trying to compare dates in a vue project but the value I pull from my local storage always returns null even when I can see the value clearly exists when I check my local storage. so here is the set up.</p> <p>after making a request I...
2
1,231
App keeps force closing
<p>Every time i try to run this code the app force closes</p> <pre><code>package com.test.sms; import android.app.Activity; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract.Contacts; public class SMSLookupActivity extends Activity { private St...
2
3,538
Android how to set time out on delayed response for asynchronous get method
<p>I want to set time out ,if the data couldn't get in 15 seconds. i used Asynchronous method to get the data from the server. i tried something which is shown in the code.i use <code>get(15000, TimeUnit.MILLISECONDS);</code>,it wait for 15 seconds and loose the connection still it able to get the data in 15 seconds.I...
2
1,370
I am trying to download facebook profile picture using java.But getting error
<pre><code>import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Authenticator; import java.net.PasswordAuthentication; import java.net.URL; public class SaveImageFromUrl { public static void main(String[] args) throws Exception { ...
2
1,196
iOS calendar repeating event
<p>Good day, I can't add custom event in standard iOS Calendar that will be repeated (during for example 2 months).</p> <p>The problem is that my event is just up to the end of current month. It doesn't matter which day it will start - it will be repeating only during this month. Code:</p> <pre><code>EKEventStore *st...
2
1,186
Tooltips, CSS only, Show text tooltip on mouseover using a class to define the text
<p>I'm fairly new to CSS, but have what seems to be an unique question. I have a TL;DR if you want to skip to it.</p> <p>I've seen MANY tutorials on how to display tooltips, but none answer this exact scenario, so it may not be possible.</p> <p>Backstory: I've been playing around with tables to show a calendar and ha...
2
2,212
formidable error: bad content-type header, unknown content-type: text/plain;charset=UTF-8
<p>I'm receiving this error: <code>Error: bad content-type header, unknown content-type: text/plain;charset=UTF-8</code> when trying to upload a photo using Formidable. When I console.log <code>fields</code> and <code>files</code>, I receive two empty objects.</p> <p>What do I need to change to solve this and upload th...
2
2,328
css :first-child :nth-child(2) is not working inside aside fieldset form
<p>The css property :</p> <pre><code>aside fieldset:first-child form span </code></pre> <p>is WORKING PERFECTLY and affected as expected but I can't set the colors inside span :</p> <pre><code>aside fieldset:first-child form span:first-child // unaffected and not working aside fieldset:first-child form span:nth-ch...
2
1,470
What's the correct Windows Base Image for ASP.NET Core 2.1 Docker Containers on Azure App Services
<p>I want to create a Docker Image that can be hosted on Azure App Services for Windows. My application is based on ASP.NET Core 2.1 and according to the <a href="https://hub.docker.com/r/microsoft/dotnet/" rel="nofollow noreferrer">official list of .NET images images</a>, I should be able to simply use <code>microsoft...
2
1,323
How do I incorporate Multiple Markdown files into a Nunjucks template with Eleventy?
<h1>CONTEXT:</h1> <ul> <li>Eleventy and Nunjucks (and Markdown)</li> <li>A lot of long-form text (easier to create/edit using markdown).</li> <li>Complex layouts.</li> <li>Still new to SSGs</li> </ul> <h1>GOAL:</h1> <ul> <li>Manage chunks of text content using markdown.</li> <li>Use these markdown files with template p...
2
1,200
How to count groups of numbers in two dimensional array?
<p>I have field from two dimensional array in which 1 is a land and 0 is nothing. When two lands stay on the same wall are called neighbors. When a land have no neighbors is called island and when it has two or more neighbors is called continent. I have to count all the islands and continents on the field. This is how ...
2
2,219
Error line: Caused by: android.view.InflateException: Binary XML file line #19: Binary XML file line #10: Error inflating class
<p>I tried doing a Drawing application in my android studio but when I tried running it on my Phone or to the emulator. The app just suddenly stops.Here is the copy of my content_main activity xml file on Layout.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas...
2
9,792
How to bind an input parameter of an Angular4 component
<p>I have a small web site I am developing in Angular4 (my first attempt in Angular) and have come across an issue I just can seem to figure out. Simplified down my scenario is:</p> <p>I have a component (account-list) which using a html5 select/option control which is populated from a rest api and displays a list of ...
2
1,309
Regular Expressions, Length check in Javascript
<p>I want to validate my form now, and I wrote some code, it's working perfectly for length constraints but I want to use Regular Expression to filter the values of each element. </p> <p>I found from a forum, these Regular Expressions:</p> <ul> <li><p>for Full Name: <code>var regex = /^[a-zA-Z ]$/;</code></p></li> <l...
2
1,152
postgreSQL get last ID in partitioned tables /
<p>my question is basically the same as this one, but i couldn't find an answer, its also written "to be solved in the next release" and "easy for min/max scans"</p> <p><a href="https://stackoverflow.com/questions/3874986/postgresqltable-partitioning-inefficient-max-and-min">PostgreSQL+table partitioning: inefficient ...
2
1,421
Creating XML- input data from HashMap
<p>I have a below data in HashMap:</p> <pre><code>Map&lt;String, String&gt; data = new HashMap&lt;String, String&gt;(); data.put("A.B.C.C1.C11", "C11"); data.put("A.B.C.C1.C12", "C12"); data.put("A.B.C.C2.C21", "C21"); data.put("A.B.C.C2.C22", "C22"); data.put("A.B.C.C3.C31", "...
2
2,844
Styled-System Button Not Rendering Properly
<p>I am trying to create a button component using Styled-System. Everything was working fine not long ago, but now only part of the styles are rendering properly and I can't figure out why. </p> <p>Here is my setup...</p> <p>Here is the component file:</p> <pre><code>// Button.js import styled from 'styled-compone...
2
1,226
Atomikos: data not getting saved when using PostgreSQL
<p>I have encountered a strange issue while using <a href="https://www.atomikos.com/" rel="nofollow noreferrer">Atomikos</a>.</p> <p>I have a small test application (Spring + Hibernate). It uses two different data sources which I need to test <a href="http://www.oracle.com/technetwork/java/javaee/jta/index.html" rel="...
2
6,463
JavaFX: ConcurrentModificationException while adding TreeItem objects in TreeView, in a seperate thread
<p>I have the following code</p> <pre><code>public void start(Stage primaryStage) { BorderPane border_pane = new BorderPane(); TreeView tree = addTreeView(); //TreeView on the LEFT border_pane.setLeft(tree); /* more stuff added to the border_pane here....
2
6,345
How to keep footer at the bottom of the page and below content in AngularJS?
<p>I have tried to keep the footer below some content with various methods, but it seems that the solutions don't behave as expected with AngularJS's dynamic content.</p> <ul> <li><p>When the page is mostly blank, I want the footer to be at the bottom of the page</p></li> <li><p>When the page expands (or just big in g...
2
1,632
Jasper Report giving java.lang.ExceptionInInitializerError
<p>I have made report using Jasper report ireport. and it is generating successfully on my laptop. but when i deploy same jar file to other computer then generating report then it will give the error :</p> <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at net.sf.jasperreports....
2
1,330
Transformer model not able to be saved
<p>I'm trying to follow this tutrial <a href="https://colab.research.google.com/github/tensorflow/examples/blob/master/community/en/transformer_chatbot.ipynb" rel="nofollow noreferrer">https://colab.research.google.com/github/tensorflow/examples/blob/master/community/en/transformer_chatbot.ipynb</a>, However, when I tr...
2
2,561
How to include jquery-ui file in webpack?
<p><strong>Desired Behaviour</strong></p> <p>Include jQuery UI in webpack build. </p> <p><strong>Actual Behaviour</strong></p> <p>Error when running webpack:</p> <blockquote> <p>ERROR in ./src/js/jquery-ui.js<br> Module not found: Error: Can't resolve<br> 'jquery' in 'C:\Me\Documents\my_repo\src\js' </p> </b...
2
1,846
xdebug.remote_handler set in PHP.INI, but not showing in PHPinfo
<p>I am trying to get Xbdebug to run with NetBeans, in order to debug some PHP code (I am sure that I had it working a few years back, then switched IDE &amp; now want to switch back).</p> <p>When I try to debug, the status bar shows<br /> <a href="https://i.stack.imgur.com/xw5fZ.png" rel="nofollow noreferrer"><img src...
2
1,674
INSERT BASE64 FILE INTO ORACLE BLOB USING PHP
<p>I’m trying to save images as BLOB on my ORACLE 11g R2 database through the base64 of files uploaded, but when i retrieve this file from DB, it dont show the a image with base64_encode function. And when i dowload this file from SQL Developer, the file doesn’t the image as well, only a message saying that the image i...
2
3,431
Checkbox unclickable on MS Edge
<p>The following radio button can be selected and deselected in Firefox and Chrome but not in MS Edge or IE11. What should I do to get it working on these browsers as well?</p> <p>I have tried following a couple of tricks from here but none of it works: <a href="https://www.triplet.fi/blog/problem-solved-custom-chec...
2
1,775
Rally 2.0 JavaScript API - Creating HTML tables and setting values dynamically
<p>I'm using Custom HTML Rally Grid to develop a table that must return some statistics. My JavaScript is being called at the head of my HTML and i'm creating a table in the body tag. So, my JavaScript is setting values in the table using the fields ids. The problem is: the table is being loaded but when the Rally.laun...
2
3,935
How to use data-ng-view in _layout.cshtml
<p>I am trying to crate a MVC application with Angular. My application has common Header and footer. So I added it in _layout.cshtml. There are some static pages in the application. Hence I want to load this using Angular routing. </p> <p>Here is my _layout.cshtml</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html data-ng...
2
1,837
Azure Webjobs and Servicebus Trigger - Cannot find functions after nuget package upgrade
<p>I'm not sure if something has changed, but our Windows Azure webjob JobHost is no longer seeing the functions included in the Functions.cs File. We have just recently upgraded the Azure Nuget packages on this solution (not sure if that is related).</p> <p>Program.cs</p> <pre><code>using M5Worker.Classes; using Mic...
2
2,476
BookBlock jQuery Plugin
<p>I am using the BookBlock plugin. It is working very well, but I can't seem to get the plugin to flip newly pages which were loaded with AJAX.</p> <p>Anybody have an idea on how to re-initialise the plugin so it "sees" the new pages?</p> <p>My code for BookBlock:</p> <pre><code>var Page = (function() { var co...
2
2,208
Video encoding with AV1 - FFmpeg
<p>I was trying to encode a raw video with AV1. </p> <p>I used: <code>ffmpeg -i netflixboxing720p.y4m -c:v libaom-av1 -b:v 500k -strict experimental netflix720p500AV1.mp4</code> </p> <p>I took 2 hours and when I open the created video I get nothing. I would play the Video. Do I need an other command line?</p> <pre><...
2
10,993
The last & break mechanism in nginx rewrite
<p>Am now dealing with nginx rewrite for my project but got something out of my expectation, just share with you to see if any reasonable advice on this.</p> <p>The nginx server setting list below:</p> <pre><code>location /download/ { rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3; rewrite ^(/download/...
2
1,599
Pandas set element style dependent on another dataframe mith multi index
<p>I have previously asked the question <a href="https://stackoverflow.com/questions/47912420/pandas-set-element-style-dependent-on-another-dataframe">Pandas set element style dependent on another dataframe</a>, which I have a working solution to, but now I am trying to apply it to a data frame with a multi index and I...
2
1,333
Generating consumer key and consumer secret in WSO2 API Manager
<p>I want to integrate the WSO2 API Manager with a website so that the user doesn't need to login to the API Store.</p> <p>From what I can see there is a stumbling block, in that the user needs to click on the 'Generate' button in the store in order to first generate the consumer key and secret.</p> <p>Once this has ...
2
1,165
Scroll view is not smooth
<p>I'm working in a project (<strong>iOS7 &amp; ARC</strong>) in which, I want to display <strong>N number</strong> of images in the scroll view.These Images already stored into sandbox directory. My App has only <strong>landscape orientation</strong> I'm facing a problem that <strong>ScrollView is not smooth, it stuck...
2
1,769
multiple dropzone.js css styling
<p>Its my first experince with dropzone.js </p> <p>I've an HTML registration wizard with multiple Dropzone.js in 3 steps , one appears on the first step with css applied to all dropzone classes <code>.dropzone</code> the first dropzone is styled correctly but the rest are not .</p> <p>on the header i've added links t...
2
1,084
Unicorn can't find bundler using capistrano
<p>I can't seem to get bundler to work with unicorn on deploy. I am using capistrano to deploy.</p> <p>Looking at the unicorn log while deploying, I get the following errors:</p> <pre><code>/home/deployer/apps/my-app/releases/20130417145122) I, [2013-04-17T14:53:04.982369 #6565] INFO -- : forked child re-executing.....
2
2,205
Trying to display welcome message when user logs in
<p>I want to display 'Welcome "username"' when a user logs in but it doesn't work. I might be doing something wrong with sessions.</p> <p>It gives an error message of:</p> <blockquote> <p>Notice: Array to string conversion</p> </blockquote> <p>My code:</p> <pre><code> &lt;?php require("config.php"); if(...
2
2,217
How to detect (Count) Hair from image using OpenCV?
<p>I have try below code using <code>OpenCV</code> functions <code>cvtColor</code>,<code>Canny</code> and <code>HoughLinesP</code> but not able to get accurate result or not work in some cases.</p> <pre><code>private boolean opencvProcessCount(Uri picFileUri) { hairCount = 0; totalC = 0; //Log.e("&gt;&gt;&gt;&gt;&gt;&...
2
1,168
Overriding model save() causes error in Django Admin
<p>I have a model that I want to save in Django Admin</p> <pre><code>class Product(models.Model): # other fields img1 = models.ImageField(upload_to='%s/%s/1/large/' % (category, prod_no)) img1_thumb = models.ImageField(upload_to='%s/%s/1/thumbnail/' % (category, prod_no), editable=False) def save(self...
2
1,814
WTF WPF TabControl?
<p>I believe this to be a bug in WPF (v4.0 if it matters), but it is late, and maybe I'm missing something.</p> <p>I am binding to a fake example for illustrative purposes:</p> <pre><code> &lt;x:Array x:Key="SampleItems" Type="sys:String"&gt; &lt;sys:String&gt;Foo&lt;/sys:String&gt; &lt;sys:String&...
2
1,722
Unit testing, using Moq to verify the exception message
<p>So, I have this test I have setup. It looks like this:</p> <pre><code>[Test] public async Task LogErrorAndReturnSuccessIfNoLines() { // Assemble const string orderNumber = "00000000"; const string lineNumber = "001"; var model = new OCS { Request = new strOCS { OrderLineID = $"{orderNumber}/{lineNum...
2
2,482
Value is retrieved only after hot reload in flutter from API
<p>I'm kinda new to flutter, I've been building app using rest API as the backend, whenever I try to load data to display on home page screen from GET API I'm not able to fetch the value until I reload or refresh the widget on the app after pushandreplacement from login screen. Please help me!!! already a week, I still...
2
1,333
Calculate Mode of each Column of dataframe, Store it in a list and make a dataframe using the it
<p>I am finding the 'MODE' of all columns in my dataframe and storing them in a list. The code that is calculating my MODE of each column :</p> <pre><code>from pyspark.sql.functions import * #calculating mode value mode_val = [] for i in df_num.columns : cnts = df_num.groupBy(i).count() mode = cnts.joi...
2
1,254
Printing and storing receipt in VB.net
<p>I am designing a POS similar program to add inventory and print and store the receipt. May I know how do I proceed? Is there a way I can store the receipt in mysql database? Here's my screenshot of the POS and the source code</p> <p>Screenshot of the sale screen: <a href="http://oi64.tinypic.com/35cpy5j.jpg" rel="n...
2
9,380
Needing help with XSLT for-each using XPATH
<p>I am working on a project that uses XSLT to transform an HTML string to extract some specific values. Can you please look at the HTML/XSLT below and see what it is that I am doing wrong? </p> <p>BTW In the HTML below I need to extract value from <code>&lt;a&gt;</code> which says "something" (XPATH = //div[@id='resu...
2
1,977
react-sortablejs - Setting the 'onChange' method on an object with nested arrays
<p>I'm using the <a href="https://www.npmjs.com/package/react-sortablejs" rel="nofollow noreferrer">react-sortablejs</a> library. When trying to move cards within the list. I get the error: </p> <blockquote> <p>Cannot read property 'map' of undefined</p> </blockquote> <p>I have a dense structure and it gets lost he...
2
2,420
Error to setup Maven project
<p>First time I am setting up maven project on eclipse luna and I am getting below error on pom.xml file. i did to much google to resolve the issue but not able to resolve error.</p> <p>Error: </p> <p>Failure to transfer org.apache.maven:maven-archiver:pom:2.6 from <a href="https://repo.maven.apache.org/maven2" rel="...
2
3,310
how to use Vibration while recording iphone5 IOS?
<p>I am working on a iphone5 app and i need some advice on the vibration motor. i goggled the things but cant find how can i manually rotate my iPhone from the code.please guide me... or give any link or ideas.. </p> <p>What i want to do is vibrate the phone while recordign the video .</p> <p>but my problem is when ...
2
1,224
WPF out of memory error when loading large amount of data
<p>I need to process large amount of data into a single <code>List&lt;ChartData&gt;</code> for my custom control. About 3 Million points it works fine after reaching the List Count 80,00,000 It throws the Out of memory error. Is there any count limit for List? Yes means shall I use any other Collection rather then the ...
2
5,747
Ionic 2 - Nav undefined
<p>I'm trying to add navigation to the <code>app.component.ts</code> file in my Ionic 2 application. For some reason I'm receiving an error that <code>nav</code> is not defined.</p> <p>Adding the <code>NavController</code> is no options either, since it'll say that there's no provider for <code>NavController</code>.</...
2
2,151
Kafka Connect JDBC Source OutOfMemoryError
<p>I'm running the following job with the <a href="https://docs.confluent.io/current/connect/connect-jdbc/docs/index.html" rel="nofollow noreferrer">Confluent JDBC-Source connector</a>:</p> <pre><code>{ "name": "jobName", "config": { "connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector", ...
2
1,041
wordpress external javascript file for inline editor plugin?
<p>Hi php wordpress people,</p> <p>I'm using inline editor plugin for wordpress I am aware that for seo purposes it is best to make sure these are external files. When I view the source in my browser I can see the javascript for inline editor plugin is displayed in the page code.</p> <p>Is there a way to make this an...
2
1,063
CORS: No pre-flight on GET but a pre-flight on POST
<p>I'm trying to remove the unnecessary pre-flight requests in my application. For it I've simplified some parts of request, removed custom headers etc. But got stuck on a problem - GET requests now work fine without pre-flights, but POST requests still have them.</p> <p>I've followed the requirements:</p> <ol> <li>R...
2
2,028
Bootstrap nav dropdown menu is not working
<p>I'm having trouble getting my Bootstrap dropdown menus to work. I've looked online and none of the solutions seem to fix my issue. I'm currently using external sources for my css and javascripts just incase the local ones weren't working. Any ideas? Here's my whole jade code for the page.</p> <pre><code>doctype...
2
1,416
Spring + Hibernate - Tables are not getting created in MySQL
<p>I have configured my web project with Spring and Hibernate. Below is the pom:</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; &lt;...
2
4,704
Samsung Galaxy S5 Camera Torch not working
<p>We have an app that works with all our supported Android phones <strong>"except Samsung Galaxy S5"</strong>. Our app uses the camera to take pictures at close range. <strong>We need torch mode ON the entire time we are focusing to take the picture.</strong> We check for supported parameters and set the values if ...
2
1,305
How to create reusable component in Vue.js
<p>I've started learning Vue.js and it's also my first experience in WebUI development, that why, I'm asking to sorry me if I tell or do something wrong.</p> <p>Ok. I'm looking for a solution on how to create reusable components using this framework. I decide to create something like treeview with possibility of custo...
2
2,875
I can't use new feature ES 2020 in my next.js app
<p>I wanted to use a new feature of ES 2020 in my next.js so I used optional changes in my app. When I ran my code this error has occurred </p> <pre><code>Module parse failed: Unexpected token (50:191) You may need an appropriate loader to handle this file type. </code></pre> <p>Then I ran this command</p> <pre><cod...
2
1,639
Linking c++ libraries (for Wt) in Xcode
<p>I'm sorry to ask a question that resurfaces all over the place in different forms, but this has me tearing my hair out and I've tried every suggestion from all the dark corners of the internet. </p> <p>I'm trying to use the Wt framework (for web based c++ applications) with Xcode. Its header files are at /usr/local...
2
1,192
random number inside for loop
<p>This is driving me crazy already and by now I'm absolutely hopeless :(</p> <p>Here is the matrix <code>draw</code> (don't pay attention to NAs, later I need those columns):</p> <pre><code> [,1] [,2] [,3] [,4] [,5] [1,] 1 0 NA NA NA [2,] 2 20 NA NA NA [3,] 2 30 NA NA NA ...
2
1,098
Use WinHTTP in Visual Studio 6.0
<p>I am maintaining a legacy app written in Visual Studio C++ 6.0.</p> <p>I need to replace portion of the code with calls to WinHTTP API.</p> <p>I have created small demo in Visual Studio 6.0 test project so I can see how would things go.</p> <p>When I build the code I get the following error ( the same code works fla...
2
1,759
Problems in accessing S3 via AWS Java SDK
<p>I'm trying to get and S3 object size via Java AWS SDK (v2), and send it back via HTTP response (this is all inside a HTTP Server using <code>com.sun.net.httpserver.HttpServer</code>). But it doesn't work and shows me the following debug messages.</p> <p>What's going wrong here? Am I missing anything?</p> <pre><code>...
2
1,915
DB connections not closing in OSGi
<p>I have an OSGi bundle which needs to persist data in a database. As described <a href="https://stackoverflow.com/questions/19031360/transaction-rollback-in-osgi">in a previous stackoverflow question</a> I have found that in order for transactions to work as expected I need to use an XADataSource to connect to the da...
2
1,104
jQuery click event not working after alert
<p>After appending table I am checking on button click event. Javascript alert is working but jQuery click event is not working.</p> <p>I cannot seem to find my mistake.</p> <pre><code>$("#inputcon").change(function(e){ if($(this).attr('checked')){ $(this).val('TRUE'); }else{ $(this).val('FA...
2
1,797
jQuery: Firefox doesn't show file select dialog on certain input[type=file] elements
<p>Summary:</p> <p>I have several <code>input[type=file]</code>elements all across my web app, that <strong>do work well</strong>. Well, 99% of them work just fine, but just now, I ran into a case, where Firefox does not show the file select dialog when I click on said element. I do not note any significant difference...
2
1,215
Thymeleaf foreach loop with button event inside
<p>I have used the Thymeleaf foreach to traverse all posts where each post has a "Comment" button. I would like to display the comment list after click this "Comment" button.</p> <p><a href="https://i.stack.imgur.com/1rbqh.jpg" rel="nofollow noreferrer">The default is hidden</a></p> <p>The following is my codes:</p> ...
2
1,543
Error when installing Liferay 7 CE with Oracle 12c
<p>I try to install Liferay 7 ce ga3 on centos and I get the following error. I installed oracle jdk 8 in centos and extracted the bundle in /opt. Since I want to connect with oracle 12c I completed the steps in this article: <a href="https://www.dontesta.it/en/2016/04/13/liferay-7-ce-how-to-add-support-for-oracle-db/...
2
5,511
error while executing doInBackground
<h2>An error occured while executing doInBackground()</h2> <p>I am new to android studio and am trying to download different bitmap pictures to show in imageview by AsyncTask class.my error log follows:</p> <pre><code>FATAL EXCEPTION: AsyncTask #1 Process: com.example.sayareh.http2, PID: 32302 java.lang.Ru...
2
2,162
QML chartview crash when changing data
<p>I'm new to qml and I didn't really get its logic yet.</p> <p>Here is my issue: I have a chartview with barseries, and I expect that when the user clicks on a bar, the bar chart changes.</p> <p>So I clear the barSeries and append new data to it. But it causes a segmentation fault. If I do the same processing from a...
2
1,596
Adding Select Field to Bootstrap Form and Getting it to Post to Database in Laravel Project
<p>I am using Laravel and trying to add a new select field to the standard Bootstrap registration form. I cannot get the value specified in the select field to show up in my database after submitting the form. All of the other fields (e.g., user name and email) are working fine.</p> <p>Below is a portion of the code w...
2
2,301
SELECT * FROM <table> BETWEEN <value typed in a JTextField> AND <idem>
<p>EDIT4:</p> <p>I don't know why, but the structure I used below didn't work. I had to modify a file I found at java2s website, it's called TableFromDatabase, then make the JTextFields public static, then instantiating the TableFromDatabase class in FrmMovimento and etc:</p> <pre><code>TableFromDatabase frame = new ...
2
1,485
ConfigurationManager.GetConfigurationAsync fails to retrieve identity configuration in TestServer
<p>I'm using <code>Microsoft.AspNetCore.TestHost</code> version 2.2.0 and <code>Microsoft.NET.Test.Sdk</code> version 15.9.0. I'm using IdentityServer4 for OAuth2 provider for Jwt Bearer Authentication. The set up is working fine when deployed with real web servers. However, the issue occurs during integration tests us...
2
2,022
MongoTemplate aggregation returns no results after operation
<p>I am trying to get some raw data from the mongo collection. I have two similar collections with the same data. When I try to get aggregation results with DBObject list, from first collection data is returned fully but from the second one return nothing. But I need to return data from the second collection. </p> <p>...
2
1,339
Selenium WebDriver: findElement() in each WebElement from List<WebElement> always returns contents of first element
<pre><code>Page page = new Page(); page.populateProductList( driver.findElement( By.xpath("//div[@id='my_25_products']") ) ); class Page { public final static String ALL_PRODUCTS_PATTERN = "//div[@id='all_products']"; private List&lt;Product&gt; productList = new ArrayList&lt;&gt;(); public void populate...
2
1,236
"router not found" on unit testing PlayFramework Controllers
<p>I'm having some trouble trying to unit test my controllers following the <a href="https://www.playframework.com/documentation/2.4.x/JavaTest#Unit-testing-controllers" rel="nofollow">play framework documentation</a> steps.</p> <p>I've created a new app using the java template. Replaced the generated ApplicationTest ...
2
1,369
Using Moxy with Metro in tomcat
<p>due to company requirements we can't use Glassfish as application server. Nevertheless I would like to use Moxy. So I tried to get the new Metro-version (<a href="https://blogs.oracle.com/mgrebac/entry/metro_2_2_jaxb_2" rel="nofollow noreferrer">https://blogs.oracle.com/mgrebac/entry/metro_2_2_jaxb_2</a>) to work wi...
2
1,695
Xamarin android - Attempt to invoke virtual method sendBroadcast() on a null object reference
<p>I'm building a crossplatform application using Xamarin,my application will download videos from internet, I've done the download and save functions, but after saved videos to DCIM(in android) the videos do not appear in gallery.After hafl of a day searching for solutions on internet I comeup with two solutions:</p> ...
2
1,948
3D camera X axis rotation
<p>I have litteraly no clue how to explain this problem, since it is is self explanitory if you look at the following video's I made.</p> <p>No Angle - <a href="https://www.youtube.com/watch?v=R_GtaXWpP9c&amp;feature=youtu.be" rel="nofollow noreferrer">https://www.youtube.com/watch?v=R_GtaXWpP9c&amp;feature=youtu.be<...
2
2,625
hiding div having dropdown based on radio button selection knockoutjs
<p>I am working on KnockoutJS where i want to hide and show divs having dropdowns based on radio button selection, however i am succesful doing it if div does not contain dropdown, please find the link to JSFiddle <a href="http://jsfiddle.net/3z2n8LLa/" rel="nofollow">http://jsfiddle.net/3z2n8LLa/</a></p> <p>here wh...
2
1,303
Multiple image uploads cause 500 Internal Server Error
<p>I want to implement multiple sections on my website, where visitors can upload their images to be shown. I got it to work perfectly in a test folder on the server, where it echoes "File is an image. [file] succesfully uploaded" and the image appears on the server. </p> <p>However, with the actual implementation of ...
2
1,113
Android Bootstrap Button(or any other Bootstrap widget) not working as it should
<p>Hello friends I just imported the AndroidBootstrap module into my Android Project, and I end up with this :</p> <p>app build.gradle :</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" useLibrary 'org.apache.http.legacy' defaultConfig ...
2
2,979
JOOQ generated classes have schema defaulted to PUBLIC
<p>This is a follow up question to this <a href="https://stackoverflow.com/questions/43760284/jooq-codegen-with-jpadatabase-not-working">SO Question</a>. I am using jooq codegen for auto generation of jooq classes from jpa entities. I am planning to use jooq as a SQL query builder and execute the actual queries with JP...
2
2,385
Fresh grails installed - app fails to run
<p>I'm trying out grails for the first time, but a simple app won't run right after it is created. I installed everything using sdkman. Here is what I have:</p> <pre><code>~$ sdk current </code></pre> <p>Using:</p> <p>gradle: 4.0 grails: 3.2.11 groovy: 2.4.12 java: 8u131-zulu</p> <p>I execute:</p> <pre><code>grail...
2
5,517
android checkbox text disappears when custom background is set
<p>I want to make a weekly calendar, where every day is a custom checkbox with objective to look like the image bellow:</p> <p>(<a href="http://i.imgur.com/WjIKCd0.png" rel="nofollow">http://i.imgur.com/WjIKCd0.png</a>)</p> <p>When the user clicks on a day (Monday in this case), the "background" and "button" checkbox...
2
1,381
Maven error - resolving dependencies
<p>I'm not very familiar with maven and I'm struggling with this error message when running a maven compile:</p> <pre><code>[ERROR] Failed to execute goal on project myProject: Could not resolve dependencies for project myProject:1.0: Failure to find weka:weka:jar:3.7.1-beta in http://repo.maven.apache.org/maven2 was ...
2
3,002
jQuery date picker does not work after refresh the page
<p>I am using jQuery datepicker. It is okay, when i ran my project in Firefox browser from localhost. After some time, When i refresh Firefox again nothing displayed of the jQuery datepicker. </p> <p>After i ran it chrome it's okay but refresh again it's gone . But when i ran it from other location(Desktop) except loc...
2
1,450
using swiper js to create a history timeline with multiple slides in each year
<p>i'm using Swiper JS and i'm struggling to find a way in which I can remove duplicates from the pagination. I want the ability to have a slide for each year with content inside, but also have multiple slides for a particular year - BUT only writing 1 pagination for it (with the nav/swipe working). </p> <p>So if the ...
2
1,051
A fatal error while converting a String to XML document
<p>I'm have XML data in the shape of String and i want to convert it to XML document in order to make some process in it, and i'm using the following method to make that:</p> <pre><code>private Document convert(String xml) throws ParserConfigurationException, SAXException, IOException { // convert...
2
3,262