title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
vue.js select2 multiple select | <p>For many days I've searched to find an answer to this error. I tried many alternatives but nothing worked. </p>
<p>I need to select multiple values. When I select multiple values, my code hangs, but when I use a single select it works well with <code>self.$emit('input', this.value)</code>. What I need is to select ... | 0 | 1,194 |
Querying and Filtering Array of JObjects with Linq | <p>I suppose this is another entry in my series of questions, but I'm stuck again. This time, I'm having trouble working with a JArray of JObjects and determining the Property.Value type for each element in the JArray... </p>
<p>My code is here:
<a href="https://dotnetfiddle.net/bRcSAQ" rel="nofollow">https://dotnetfi... | 0 | 1,072 |
android: device not supported by app- why? | <p>I am currently developing a camera app. Now one of the users is complaining that his device is not supported. It's a <a href="http://www.specsbox.com/819/acer-iconia-a200-tablet.html" rel="noreferrer">Acer A200</a>:</p>
<p>I don't see any reason why android market / google play marks the app as <strong>not supporte... | 0 | 1,090 |
getActivity() / context in a ViewHolder in Kotlin Android | <p>I'm building a ViewHolder and Adapter for a Fragment and when I try to make an OnClick for the ViewHolder, none of the contexts I pass in work. There is no <code>activity</code> from <code>getActivity()</code> that I can use, and <code>p0!!.context</code> nor <code>itemView.context</code> work either. Where should I... | 0 | 1,515 |
How to add a checkbox in a Material Design table in Angular 4 | <p>I would like to add a checkbox in a Material Design table in Angular 4, it would be under the column Publish. The problem is that the checkbox doesn't show in the table just the text with and error message </p>
<p>"No value accessor for form control with unspecified name attribute"
<a href="https://i.stack.imgur.c... | 0 | 1,132 |
Rake db:test:prepare task deleting data in development database | <p>Using a <a href="https://github.com/mhartl/sample_app_rails_3_2/blob/master/config/database.yml" rel="nofollow noreferrer">simple Rails sqlite3 configuration example</a> in my <strong>config/database.yml</strong> for a Rails 3.2.6 app, I used to reset my development database, re-seed it, and prepare my test database... | 0 | 2,388 |
English to Morse Converter | <p>I've been working on a program that is supposed to convert english to morse code. I am having a really hard time dealing with the strings. For example I have no clue why I can have morseAlphabet have a set number of positions at [30] but I cannot do the same for latinAlphabet. Overall I have no clue how I am suppose... | 0 | 1,082 |
SSL bad Handshake Error 10054 "WSAECONNRESET" | <p><strong>Notes:</strong></p>
<pre><code>versions
Python 2.7.11 and my requests version is '2.10.0'
'OpenSSL 1.0.2d 9 Jul 2015'
Please read the below comment by Martijn Pieters before reproducing
</code></pre>
<p>Initially I tried to get pdf from <code>https://www.neco.navy.mil/necoattach/N6945016R0626_2016-06-20_... | 0 | 1,447 |
How I get a LinkButton in Black and without Underline in my ASP.NET Control? | <p>I have a ASP.NET Application and I use a ListView. If I create a ListItem (a line) I want use a LinkButton. I want that this LinkButton have the CSS Properties..</p>
<pre class="lang-css prettyprint-override"><code>color:Black;
text-decoration:none;
</code></pre>
<p>But if I start the Application. I get the linkBu... | 0 | 2,171 |
How to add hadoop dependency via Maven? I have hadoop installed and present in my IDE project library | <ul>
<li>I have hadoop installed on my system(I am using Mac 10.7)</li>
<li>I am using Intellij IDEA as IDE and my hadoop project has listed hadoop*.jar as dependency</li>
<li>When I do <code>mvn install</code>, it fails with the following error</li>
</ul>
<blockquote>
<pre><code>(master) $ mvn clean install
[INFO] Sc... | 0 | 1,053 |
How to Refresh Android List Adapter, so it shows new-added items | <p>I was working on a project. It's just showing a list of tasks and Adding new tasks to it. I have 3 CLASSES. One for adding, One for view and One to hold all information (or so I think).</p>
<p>I have 2 tasks in my List already, and they are shown properly. </p>
<p>The problem is, when I <strong>add</strong> a new ... | 0 | 1,610 |
Fetch API and multer error while uploading file | <p>I'm trying to use fetch API to upload files to a node.js server (I'm using github's pollyfill if it has something to do with it: <a href="https://github.com/github/fetch" rel="noreferrer">https://github.com/github/fetch</a>).</p>
<p>The request is done like this:</p>
<pre><code>const data = new FormData();
data.ap... | 0 | 1,569 |
Java Map sort by value | <p>I was looking for ways of sorting <code>Map<String, Integer></code> by values. I found <a href="https://stackoverflow.com/questions/109383/how-to-sort-a-mapkey-value-on-the-values-in-java">this post</a>, which solved my sorting problem, but not exactly. According to the post, I wrote the following code:</p>
<... | 0 | 1,266 |
I Can't Find dompdf_config.inc.php or dompdf_config.custom.inc.php for setting "DOMPDF_UNICODE_ENABLED" true | <p>I use dompdf to save a html page as pdf by php. I use Persian characters in my html page (actually php page) but when i'm trying to save it as pdf, the export just looked like '?????' :( .I have searched all the net and I found a configuration for unicode characters <a href="https://github.com/dompdf/dompdf/wiki/Un... | 0 | 1,597 |
Change < Formik > to useFormik | <p>I am using Formik/Yup for a validation of a page, which calls a GraphQL mutation. My code works fully:</p>
<pre><code>export default function RemoveUserPage() {
const [isSubmitted, setIsSubmitted] = useState(false);
const [isRemoved ,setIsRemoved] = useState(false);
const [errorMessage, setErrorMessage] = use... | 0 | 3,310 |
Uncaught exception in Firebase runloop (3.0.0) | <p>I'm using the latest firebase(9.0.2):
<code>build.gradle:</code></p>
<pre><code>dependencies {
...
compile "com.google.firebase:firebase-database:9.0.2"
compile 'com.google.firebase:firebase-auth:9.0.2'
}
apply plugin: 'com.google.gms.google-services'
</code></pre>
<p>Project <code>build.gradle</cod... | 0 | 2,551 |
Cannot load driver class: com.mysql.jdbc.Driver Spring Boot | <p>I was working with Spring Boot project, and suddenly I faced with an issue that application can not load MySQL jdbc.(I compiled this project once without changing anything) <br> This is my pom.xml:</p>
<pre><code><parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring... | 0 | 3,223 |
Fatal Error Laravel: Uncaught ReflectionException when i view my Site | <p>I have the following error when i view my site.</p>
<p><strong>My Error:</strong></p>
<blockquote>
<p>Fatal error: Uncaught ReflectionException: Class log does not exist in
/home/vagrant/Code/in10km/vendor/laravel/framework/src/Illuminate/Container/Container.php:741> Stack trace: #0
/home/vagrant/Code/in10km... | 0 | 1,431 |
Spring-Boot : 400 Bad request error even when parameter is present | <p>In the following method there are two parameters <code>childFile</code> and <code>file</code>, I run this call through postman but it gives me 400 Bad Request error when I check the logs it says that parameter <code>childFile</code> is not present, I attach code, error and postman screenshot please tell me what is t... | 0 | 2,442 |
JPA sequence generator not working | <p>Trying to setup an id with a JPA sequence generator:</p>
<pre><code>@Entity
@Table(name=CommitmentRegisterDetailTable.TABLE)
public class TestCrd {
@Id
@Column(name=CommitmentRegisterDetailTable.COMMIT_REG_DETAIL_ID)
@SequenceGenerator(name="CRD_ID", sequenceName="COMMIT_REG_DETAIL_ID_SEQ", allocatio... | 0 | 7,457 |
'Failed to build gem native extension' on Windows 7 (The system cannot find the path specified) | <h2>The problem in short</h2>
<p>I'm on Windows and am getting the following error when running <code>gem install json —platform=ruby</code>:</p>
<pre><code>The system cannot find the path specified.
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system can... | 0 | 4,287 |
Force each row in Bootstrap table to be a one-liner when table is wider than screen | <p>I am building up a dynamic table which consists of 1-50 columns depending what the user selects. When the user selects 1-6 colums there is no problem showing all the data on the screen but when the user selects more than 6 columns the table tries to squeeze the view together on the screen resulting in each row being... | 0 | 1,075 |
Prevent resubmit form after click "back" button | <p>I have 2 pages :<br/><br/>
<strong>page1.php :</strong><br/>
- has a form with text box and a "submit" button. Eg : <code><form name="frm_register" action="page1.php" method="post"></code><br/><br/>
- php and mysql code to store the value of textbox to database. Javascript will redirect the page to <code>php2.... | 0 | 1,786 |
Parsing error "parserOptions.project" has been set for @typescript-eslint/parser | <p>I created a new <a href="https://docs.nestjs.com/" rel="noreferrer">NestJS project</a> which is a very popular NodeJS framework. But I have this error (see title) on my IDE (PhpStorm 2020.2-Beta) and ESLint doesn't work at all.</p>
<p>I've used the NestJS CLI :</p>
<pre><code>nest new nestjs-micro
</code></pre>
<p>I... | 0 | 1,078 |
Spring Maven repository issue | <p>A sample Spring project contains the following POM file:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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 htt... | 0 | 12,549 |
Renaming an uploaded file using Multer doesn't work (Express.js) | <p>I'm trying to upload a file from a HTML form using Express.js and Multer. I've managed to save the file to the desired location (a folder named <em>uploads</em>).</p>
<p>However, I'd like to rename the file while uploading it because, by default, Multer gives it a strange name such as:</p>
<blockquote>
<p>5257ee... | 0 | 1,143 |
Installing lxml with pip in virtualenv Ubuntu 12.10 error: command 'gcc' failed with exit status 4 | <p>I'm having the following error when trying to run "pip install lxml" into a virtualenv in Ubuntu 12.10 x64. I have Python 2.7.</p>
<p>I have seen other related questions here about the same problem and tried installing python-dev, libxml2-dev and libxslt1-dev.</p>
<p>Please take a look of the traceback from the mo... | 0 | 2,535 |
Exception: Error when checking model target: expected dense_3 to have shape (None, 1000) but got array with shape (32, 2) | <p>How do I create a VGG-16 sequence for my data?</p>
<p>The data has the following :</p>
<pre><code>model = Sequential()
model.add(ZeroPadding2D((1, 1), input_shape=(3, img_width, img_height))) model.add(Convolution2D(64, 3, 3, activation='relu', name='conv1_1')) model.add(ZeroPadding2D((1, 1)))
model.add(Convoluti... | 0 | 1,399 |
coverage.py does not cover script if py.test executes it from another directory | <p>I got a python script which takes command line arguments, working with some files.
I'm writing succeeding tests with <code>py.test</code> putting this script through its paces, executing it with <code>subprocess.call</code>.</p>
<p>Now I want to analyze code coverage with <code>coverage.py</code>.
Coverage, when us... | 0 | 1,694 |
ClassNotFoundException upon running JAR, no errors while running in IntelliJ IDEA | <p>I'm just starting to build Java apps (I do have .NET experience) and I was trying to build a small test app whose whole code is this :</p>
<pre><code>package com.company;
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultS... | 0 | 1,743 |
"Cannot call value of non-function type" | <p>I have just downloaded the Xcode 8 Beta so that I can include some of the new iOS 10 frameworks in my app. However, during the process of converting my code from Swift 2 to Swift 3, I ran into several errors. I fixed all but one super annoying one. </p>
<p>I am getting the error:</p>
<blockquote>
<p>Cannot call ... | 0 | 3,009 |
@EnableJpaRepositories dependency | <p>I'm trying to connect my STS project with DB.</p>
<p>But I can not import <code>@EnableJpaRepositories</code>.</p>
<p>My code AccountRepository.java : </p>
<pre><code>package com.myongjoon.spring;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.JpaRepos... | 0 | 5,297 |
Binding between my usercontrol and ViewModel | <p>Can not do Binding</p>
<p>Random (MyViewModel) -> VMTestValue (MyViewModel) -> TestUserControl (MainWindow)</p>
<p>"MyViewModel" is ViewModel for "MainWindow"</p>
<p>All project: <a href="http://rusfolder.com/32608140" rel="nofollow">http://rusfolder.com/32608140</a></p>
<p>TestUserControl.xaml</p>
<pre><code>&... | 0 | 1,490 |
Correct YUV422 to RGB conversion | <p>I've been trying to tackle a YUV422 into a RGB conversion problem for about a week. I've visited many different websites and have gotten different formulas from each one. If anyone else has any suggestions I would be glad to hear about them. The formulas below give me an image with either and overall purple or a gre... | 0 | 3,119 |
Setting Up ActiveMQ | <p>I have followed a tutorial to install ActiveMQ <a href="http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.html">http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.html</a></p>
<p>I dont quite understand this part of the tutorial</p>
<pre><code>Now, you must crea... | 0 | 1,069 |
how do i store the value of stars rating in mysql database | <p>Hi I have form that contains Ratings, Name, email, and comments. I am able to insert the user input data for name, email and comments. But don't know how to store the star ratings in database. Anyone please help me. thanks</p>
<pre><code> <?php
if(isset($_POST['submit']))
{
$name = $_POST['name'];
$email ... | 0 | 1,526 |
Display point style on legend in chart.js | <p><a href="https://jsfiddle.net/43Tesseracts/qmhhc089/" rel="nofollow noreferrer">https://jsfiddle.net/43Tesseracts/qmhhc089/</a></p>
<p>For this chart's first dataset <code>XPData</code>, how do I set the legend style to use the point instead of the line?</p>
<p>I'm hoping all I need to do is add: <code>showLines: ... | 0 | 1,994 |
Angular: Cannot Get / | <p>I am trying to open, build and run someone else's Angular 4 project but I am not able to view the project when I run it my way. I don't see what is going wrong or what I should do now. I already had everything in place to use NPM and NodeJS</p>
<p>The steps I took were:</p>
<ul>
<li>Open up the project</li>
<li>np... | 0 | 1,811 |
Facebook Javascript SDK error "Object [object Object] has no method 'init` | <p>One of the first things that needs to be done in order to load the SDK for interacting with Facebook, is to run:</p>
<p><code>FB.init(params)</code></p>
<blockquote>
<p>This method is used to initialize and setup the SDK. . . . . .
All other SDK methods must be called after this one, because they
won't exist... | 0 | 1,411 |
Sorting in pyqt tablewidget | <p>How can I sort a coloumn in pyqt by the highest number? Currently I have <code>setSortingEnabled(True)</code> and that only sorts it by the most numbers (ex. 1,1,1,1,2,2,2,3,3) i want to do it by the highest number for example (ex. 58,25,15,10). Thanks!</p>
<p>Data Update:</p>
<pre><code>def setmydata(self):
f... | 0 | 2,592 |
VB.net Simple Multithreading | <p>I have a Private Sub Fill(), which im trying to call from button1, in the form of </p>
<pre><code>Dim t1 As System.Threading.Thread = New System.Threading.Thread(AddressOf Me.Fill)
t1.Start()
</code></pre>
<p>However, when I run the program nothing happens. I click the button numerous times and the function isnt ... | 0 | 1,159 |
How to make an asynchronous Dart call synchronous? | <p>I'm on the way to evaluate Dart for a German company by porting various Java programs to Dart and compare and analyze the results. In the browser Dart wins hands down. For server software performance seemed to be a serious isssue (see <a href="https://stackoverflow.com/questions/28026648/how-to-improve-dart-performa... | 0 | 1,058 |
path fill color in d3 | <p>Good day,</p>
<p>Coder, I am new to d3 and json. i want to create a simple map projection that will identify the population of each country that was saved in csv file. </p>
<p>I already created the map projection and now i am stock for almost a week on how to fill the country based on the population on my csv file... | 0 | 2,892 |
“the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded” from superagent in Android React Native | <p>I'm using <code>superagent</code> to upload files from my React Native app. It works perfectly fine on iOS, but on Android it gives this error:</p>
<blockquote>
<p>Possible causes: the network is offline, Origin is not allowed by
Access-Control-Allow-Origin, the page is being unloaded, etc.</p>
</blockquote>
<... | 0 | 1,587 |
Nice inset border in CSS3 | <p>I'm really loving this border style I've seen around on the tubes lately:</p>
<p><img src="https://i.stack.imgur.com/Fl8af.png" alt="enter image description here"></p>
<p>It'll probably look better if you just view it on the site: <a href="http://markdotto.com/bootstrap/" rel="nofollow noreferrer">http://markdotto... | 0 | 1,050 |
Android Set Text of TextView in Fragment that is in FragmentPagerAdapter | <p>This one is driving me nuts. Basically, I want to create a <code>ViewPager</code> and add a few <code>Fragment</code>s to it. Then, all I want to do, it set a value in one of the <code>Fragment</code>'s <code>TextView</code>s. I can add the <code>Fragment</code>s fine, and they attach, but when I go to <code>findVie... | 0 | 1,677 |
Ant JUnit ClassNotFoundException | <p>I realize there are a lot of similar questions as <a href="https://stackoverflow.com/questions/10658636/new-to-ant-classnotfoundexception-with-junit">this one</a>, however after reading over most of them I seem to be having the same problem, but for different reasons.</p>
<p>I'm running a <code><junit></code>... | 0 | 2,237 |
The Google Play services resources were not found - Push Notifications | <p>I'm following the Google Tutorial to install <strong>Push Notification</strong> on Android.
I'm using <strong>Google Play Services Module</strong> because the Google Cloud Messaging was recently <em>deprecated</em>.</p>
<p>Tutorial : <a href="http://developer.android.com/google/gcm/client.html" rel="nofollow norefe... | 0 | 6,862 |
Filtering database rows with spring-data-jpa and spring-mvc | <p>I have a spring-mvc project that is using spring-data-jpa for data access. I have a domain object called <code>Travel</code> which I want to allow the end-user to apply a number of filters to it.</p>
<p>For that, I've implemented the following controller:</p>
<pre><code>@Autowired
private TravelRepository travelRe... | 0 | 2,670 |
Errors installing PyAudio "Failed Building Wheel for PyAudio" | <p>I have been having trouble finding a fix for getting PyAudio installed on my machine. I have tried a few different solutions and i do have the prerequisite library "portaudio" installed using homebrew. I have also looked for solutions to the gcc error that appears at the bottom of the output and to which solutions o... | 0 | 4,586 |
How do I use Java to read a .csv file and insert its data into SQL Server? | <p>I am very new to Java. I have a task with two steps.</p>
<ol>
<li>I want to read all data from a <code>.csv</code> file.</li>
<li>After reading that data I have to put it into a SQL Server database.</li>
</ol>
<p>I have done step one. I'm able to read the <code>.csv</code> file data, but I don't know that how to i... | 0 | 1,045 |
Difference between an empty ArrayList and an ArrayList with null elements? | <p>I am coding some validators for a REST service which parse a JSON and I found out something that sounds wierd for me (I am not a <strong><em>JAVA expert</em></strong> at all).</p>
<p>Consider having two <strong><em>ArrayLists</em></strong>: </p>
<pre><code>ArrayList<Object> list1 = new ArrayList<Object>... | 0 | 1,362 |
Get item by id in Room | <p>I'm using Room + LiveData in my Android project. Following to Google Blueprints, I've implemented data layer of my application.</p>
<p>This is how my Dao looks like:</p>
<pre><code>@Query("SELECT * FROM events WHERE id=:arg0")
fun loadSingle(id: String): LiveData<Event>
</code></pre>
<p>I'm calling it f... | 0 | 2,507 |
Filling empty cells in CSS Grid Layout | <p>I have a set of div tiles that I've arranged through the CSS Grid Layout as "automatically" as possible; my final idea is that even if I don't know how many tiles there are, they all get sized and placed correctly. This is working fine.</p>
<p>Now, I'm looking to double the area of any tile that is clicked on. As f... | 0 | 1,089 |
netTCP binding Soap Security Negotiation Failed | <p>I am writing a WCF service requires impersonate and session.<br/></p>
<p>It is ok when I tried to call it on my local machine, but on the remote machine it always failed with such error:</p>
<blockquote>
<p>Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an acco... | 0 | 2,140 |
"You don't have a SNAPSHOT project in the reactor projects list." when using Jenkins Maven release plugin | <p>I'm using SVN, Maven 3.0.3 on the latest version of Jenkins and the Maven Release plugin. I'm trying to use the Maven release plugin (through Jenkins) do a dry run and so am executing the options …</p>
<pre><code>Executing Maven: -B -f /scratch/jenkins/workspace/myproject/myproject/pom.xml -DdevelopmentVersion=53... | 0 | 2,053 |
EntityDataSource and Entity Framework 6 | <p>I am learning ASP.NET. I came to EntityDataSorce control. I am using EF6. I have read that this control and EF6 have some issues, conflicts, but with the last update to EntityDataSource this issue has solved. <a href="http://blogs.msdn.com/b/webdev/archive/2014/02/28/announcing-the-release-of-dynamic-data-provider-a... | 0 | 1,730 |
"GPU process isn't usable. Goodbye." | <p>I'm experimenting with building a Windows and Mac OS app using Electron and have hit a snag.</p>
<p>In short, if I try to run the application directly with Electron on Mac OS Big Sur (as opposed to building a Mac app and then running that) I get the following error returned:</p>
<pre><code>[35941:0821/171720.038162:... | 0 | 1,737 |
ValueError: Traceback (most recent call last) <ipython-input-15-d27c936e2293> in <module>() | <p>I am trying to read the data from a csv file and I am getting this error:</p>
<hr>
<pre><code>ValueError Traceback (most recent call last)
<ipython-input-15-d27c936e2293> in <module>()
11 for row in header:
12 # row = [Date, Open, High, Low, Close, Volume, Adj. clos... | 0 | 1,102 |
Why am I getting "undefined reference to `dladdr'" even with -ldl for this simple program? | <p>I'm working through an <a href="http://llvm.org/releases/2.6/docs/tutorial/JITTutorial1.html">LLVM Tutorial</a>, but I'm having trouble compiling. I've written a minimal example that reproduces the issue:</p>
<pre><code>#include "llvm/Module.h"
#include "llvm/LLVMContext.h"
int main(int argc, char **argv) {
ll... | 0 | 1,623 |
Remove .php from urls with htaccess | <p>EDIT: current .htaccess file:</p>
<pre><code>Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
## hide .php extension snippet
# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]
# To internally fo... | 0 | 1,377 |
Type Syntax error on token(s), misplaced construct(s) | <pre><code>package list;
public class LinkedList implements List {
//Datenfeld
private Element item;
//Zeigerfeld
private LinkedList next;
//Konstruktor, erzeugt leere Liste
public LinkedList() {
item = null;
next = null;
}
//Selektoren
public Object getItem() {
... | 0 | 1,299 |
How to Quickly Remove Items From a List | <p>I am looking for a way to quickly remove items from a C# <code>List<T></code>. The documentation states that the <code>List.Remove()</code> and <code>List.RemoveAt()</code> operations are both <code>O(n)</code></p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/cd666k3e.aspx" rel="noreferrer">List... | 0 | 2,969 |
CoreData and SwiftUI: Context in environment is not connected to a persistent store coordinator | <p>I am trying to teach myself Core Data by building a homework managing app. My code builds fine and the app runs okay until I try to add a new assignment to the list. I get this error <code>Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1c25719e8)</code> on the following line: <code>ForEach(courses, id: \.self) { course... | 0 | 1,978 |
Delphi Queue and Synchronize | <p>I am reading Nick Hodges online and I have discovered the Queue but it is not behaving as I've expected and I couldn't understand what him and the documentation say. Look at this code:</p>
<pre><code> TThread.CreateAnonymousThread(
procedure
begin
TThread.Queue(TThread.Current, procedure
... | 0 | 1,062 |
WPF Template Binding in ToggleButton UserControl | <p>I'm developing a basic dip-switch user control as a personal learning exercise. Originally I had it set up where you could declare some custom color properties on the user control, and they would be used on elements inside the control.</p>
<p>However, I recenly discovered ToggleButtons, and rebuilt my control to ta... | 0 | 2,641 |
php mysql compare long and lat, return ones under 10 miles | <p>Hay i want to find the distance (in miles) between 2 locations using lat and long values, and check if they are within a 10 mile radius of each other.</p>
<p>When a user logs in, their lat/long values are saved in a session</p>
<pre><code>$_SESSION['lat']
$_SESSION['long']
</code></pre>
<p>I have 2 functions</p>
... | 0 | 1,181 |
JQGrid - SetRowData - Returns success but no data updated | <p>I am trying to add/edit data into my JQGrid. Currently the first column is populated and then the other six are blank and are dependent upon the first column. So I need to <strong>add or "edit the blank" the data in the other six columns while the first remains the same.</strong> </p>
<p>Right now I am just trying... | 0 | 1,089 |
Needing a working example on how to use QThreadPool | <p>I want to use multiThreading webkit with <code>QThreadPool</code></p>
<p>My code is:</p>
<p><strong>webkitrunnable.cpp:</strong></p>
<pre><code>webkitRunnable::webkitRunnable(QUrl inputURL) : url(inputURL)
{
init();
}
void webkitRunnable::run()
{
qDebug() << "run ...";
qDebug() << "webkit... | 0 | 1,380 |
possible ways to store JSON in dynamodb | <p>I am working on an implementation where my system will be integrated with an external application. This external application generates long and different json for every request.</p>
<p>I want to store this json in dynamodb, what would be the best approach to do that? Currently, I have created a POJO class with belo... | 0 | 1,289 |
Elasticsearch Parse Exception error when attempting to index PDF | <p>I'm just getting started with elasticsearch. Our requirement has us needing to index thousands of PDF files and I'm having a hard time getting just ONE of them to index successfully.</p>
<p>Installed the Attachment Type plugin and got response: <code>Installed mapper-attachments</code>.</p>
<p>Followed the <a href... | 0 | 1,155 |
How do I fill white background while resize image | <p>Current background is black. How to change the color to be white?</p>
<p>
<pre><code> #assuming the mime type is correct
switch ($imgtype) {
case 'image/jpeg':
$source = imagecreatefromjpeg($source_image);
break;
case 'image/gif':
$source = imagecreatefrom... | 0 | 1,337 |
Get nested dict items using Jinja2 in Flask | <p>for this dictionary with this Flask controller</p>
<pre><code>projects = {
'life-calc':{'url':'life-calc',
'title': 'Life Calculator'},
'text-game':{'url':'text-game',
'title':'Text Adventure'},
'fill-it-up':{'url':'fill-it-up',
'ti... | 0 | 1,181 |
Android Location.distanceBetween and Location.distanceTo difference | <p>I encounter some issues on trying to calculate distance between one location and a list of others (in order to get the closest one).
I tried by using Location.distanceBetween(...) and location.distanceTo(...), the two method are working but both of them send me different data and not any of them seems right.</p>
<p... | 0 | 1,505 |
Twitter Bootstrap 3 inline and horizontal form | <p>I'm trying to migrate my Bootstrap 2 form to Bootstrap 3.<br />
My current code and fiddle: <a href="http://jsfiddle.net/mavent/Z4TRx/" rel="nofollow noreferrer">http://jsfiddle.net/mavent/Z4TRx/</a></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snip... | 0 | 1,385 |
Plot legend below the graphs and legend title above the legend in ggplot2 | <p>I have a dataframe <code>df</code>:</p>
<pre><code>structure(list(y = c(2268.14043972082, 2147.62290922552, 2269.1387550775,
2247.31983098201, 1903.39138268307, 2174.78291538358, 2359.51909126411,
2488.39004804939, 212.851575751527, 461.398994384333, 567.150629704352,
781.775113821961, 918.303706148872, 1107.376... | 0 | 1,812 |
How to render a partial view (using razor) after user click? | <p>I've been searching for a solution, but every thing I tried didn't help, although it seems very easy. I'm sure some of you will know what should I do.</p>
<p>I am using ASP.NET MVC4 (razor).
I have a side menu, and all I want is that another partial view will be rendered (depends on the menu item's being clicked).
... | 0 | 1,083 |
installing Gdal on Windows 10 with python 3.6.4: fatal error C1083: Cannot open include file: 'cpl_port.h' | <p>So I am trying to pip install gdal but got an error. </p>
<pre><code> extensions/gdal_wrap.cpp(3168): fatal error C1083: Cannot open include file: 'cpl_port.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.13.26128\\bin\\HostX86... | 0 | 2,126 |
Is async HttpClient from .Net 4.5 a bad choice for intensive load applications? | <p>I recently created a simple application for testing the HTTP call throughput that can be generated in an asynchronous manner vs a classical multithreaded approach.</p>
<p>The application is a able to perform a predefined number of HTTP calls and at the end it displays the total time needed to perform them. During m... | 0 | 2,795 |
java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonProcessingException | <p>I'm using <code>templateRest</code> to post <code>User</code> object to <code>Rest Server</code> but I encoutered the following error:</p>
<blockquote>
<p>Exception in thread "main" java.lang.NoClassDefFoundError:
com/fasterxml/jackson/core/JsonProcessingException at
edu.java.spring.service.client.RestClie... | 0 | 4,575 |
why do I get 'inject' undefined error when using Jasmine with Angular? | <p>I am Jasmine/AngularJS unit testing newbie. I created a simple angular app to add two numbers so that I can learn how to write unit tests for Angular App. The <a href="http://docs.angularjs.org/guide/dev_guide.unit-testing#!" rel="noreferrer">Angular Doc on unit test is incomplete</a>.Based on the blogs and stack ov... | 0 | 1,043 |
jQuery to make HTML5 Canvas Responsive | <p>How can I make my HTML5 Animation (Canvas) responsive using jQuery ? </p>
<p>Since my Canvas is 1100px Width by 800px Height (for a greater effect on bigger screens) I the canvas to start resizing for screens smaller than 1200 px width.</p>
<p><strong>HTML:</strong></p>
<pre><code><canvas id="canvas" width="1... | 0 | 1,346 |
No plugin found for prefix 'exec' in the current project and in the plug in groups org.codehaus.mojo | <p>I have read several questions with similar issue and the Help 1 page. Unfortunately, I am stuck. </p>
<p>One possible reason could be caused by proxy but there is no such proxy here. Additionally, all maven projects in my PC have been successfully updated when I update it from Eclipse. So I discard this possibility... | 0 | 8,357 |
error TS5023: Unknown compiler option 'enableIvy' | <p>I am trying to add IVY to my angular 7 beta project. So, I added <code>enableIvy: true</code> to <code>src/tsconfig.app.json</code> in <code>compilerOptions</code> section</p>
<p>But when I run <code>ng build --prod --aot --output-hashing none</code> I get below error.</p>
<pre><code>error TS5023: Unknown compiler... | 0 | 1,235 |
Visual Studio 2012 Web Deploy Publish ignores selected Configuration for transform and build | <p>When I create a publish profile I have the option to select which Configuration I want the publish to use for this profile. The options are like Debug, Release or any custom defined one like Staging.
The problem is that if I select any Configuration other than Release or Debug, say Staging, visual studio totally ig... | 0 | 1,031 |
How to get array from JSON Object? | <p>i want to get the array of json objects from a json object. But it doesnt work.
Can anybody help me?</p>
<p>The output is: </p>
<pre><code>Exception in thread "main" org.json.JSONException: JSONObject["value"] not
found.
</code></pre>
<p>Source Code: </p>
<pre><code>import org.json.*;
public class JsonIO {
pu... | 0 | 2,308 |
C OpenMP parallel quickSort | <p>Once again I'm stuck when using openMP in C++. This time I'm trying to implement a parallel quicksort.</p>
<p><strong>Code:</strong></p>
<pre><code>#include <iostream>
#include <vector>
#include <stack>
#include <utility>
#include <omp.h>
#include <stdio.h>
#define SWITCH_LIMIT... | 0 | 1,995 |
Code Igniter PHP Error - Message: Use of undefined constant | <p>Im loading different contents in my main view with my menu, the code is working properly but is i have this error message.</p>
<pre><code>A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant users - assumed 'users'
Filename: views/welcome.php
Line Number: 53
A PHP Error was encountered
Se... | 0 | 1,035 |
T-SQL How to select min, max and first row from table from duplicate values | <blockquote>
<pre><code> DateTime -- Unit -- Client --- Qty
03/02/2013 08:00:01 -- 3 -- 1 --- 1
03/02/2013 08:00:02 -- 3 -- 2 --- 1
03/02/2013 08:00:03 -- 3 -- 3 --- 2
03/02/2013 08:00:04 -- 3 -- 3 --- 2
03/02/2013 08:00:05 -- 3 -- ... | 0 | 1,502 |
Aggregating Rows Pandas | <p>I am quite new to <code>pandas</code>. I need to aggregate <code>'Names'</code> if they have the same name and then make an average for <code>'Rating'</code> and <code>'NumsHelpful'</code> (without counting <code>NaN</code>). <code>'Review'</code> should get concatenated whilst <code>'Weight(Pounds)'</code>should re... | 0 | 1,264 |
The method getApplicationContext() is undefined - fragment issues | <p>I am getting the following errors:
The method getApplicationContext() is undefined
The method findViewById(int) is undefined for the type Fragment1</p>
<p>These errors seem to be eliminated when my class is extended to an Activity as oppose to a fragment, but it is important that this activity remains as a fragmen... | 0 | 4,832 |
HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process ASP.NET Core 3 | <p>From this morning without any changes to the code of the project, a very simple Web API, one controller and 3 methods, with Swagger, it doesn't start anymore and I get the error:</p>
<blockquote>
<p>HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process</p>
</blockquote>
<p>Event viewer report... | 0 | 1,814 |
Parallax and Pin collapse modes not working in Collapsing Toolbar Layout | <p>This is my code of my test project:-
Main Activity</p>
<pre><code> package com.invento.defcomm.collapsingtoolbarlayout;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.v... | 0 | 1,572 |
Rspec doesn't see my model Class. uninitialized constant error | <p>I'm writing tests on Rspec for my models in Ruby on Rails application.
And I receive this error while starting 'rspec spec' </p>
<pre><code>command:
/spec/models/client_spec.rb:4:in `<top (required)>': uninitialized constant Client (NameError)
</code></pre>
<p>I use Rails 4.0.0 and Ruby 2.0.0</p>
<p>Here is... | 0 | 1,273 |
Rendering HTML+Javascript server-side | <p>I need to render an HTML page server-side and "extract" the raw bytes of a canvas element so I can save it to a PNG. Problem is, the canvas element is created from javascript (I'm using jquery's Flot to generate a chart, basically). So I guess I need a way to "host" the DOM+Javascript functionality from a browser wi... | 0 | 1,049 |
*** glibc detected *** sendip: free(): invalid next size (normal): 0x09da25e8 *** | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/4729395/c-error-free-invalid-next-size-fast">C++ Error: free(): invalid next size (fast):</a></p>
</blockquote>
<p><em>That's a C++ question (albeit a 'C++ being abused' question). Alternative duplicate: <a hre... | 0 | 3,484 |
Failed to Load Plugin Vue in eslintrc.js When Building | <p>Dockerfile runs <code>RUN npm run build</code> which runs <code>vue-cli-service build</code>. After some time, I get an error from <code>.eslintrc.js</code>:</p>
<p>Failed to load plugin 'vue' declared in '.eslintrc.js': createRequire is not a function. Build does not get completed because of this issue.</p>
<p>Th... | 0 | 1,232 |
java.lang.ClassNotFoundException: org.apache.commons.lang.UnhandledException | <p>while running the tomcat, I am getting error like this:
(In code, up to controller, it is working fine, but when it comes to JSP page, it is giving error)
please, can any one help?</p>
<pre><code>Oct 30, 2013 4:48:16 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp... | 0 | 4,742 |
Exporting HTML table into excel using javascript | <p>I have table with 4 columns where every column includes text field and button and at the end of every row consists of edit and delete button.
I want to export the table into excel format but when I do the text field and button at the column header and edit and delete button are also getting exported into excel file... | 0 | 2,220 |
rake aborted! cannot load such file -- yard | <p>I have been trying to add a vagrant plugin (<a href="https://github.com/schisamo/vagrant-omnibus" rel="noreferrer">https://github.com/schisamo/vagrant-omnibus</a>) from source. I downloaded it, did "bundle install", which went smooth. But when I did "rake install", it showed me the following error:</p>
<pre><code>r... | 0 | 1,291 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.