title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
AJAX returns 404 in Spring MVC | <p>ViewResolver (my jsp is in the right folder as specified on prefix value):</p>
<pre><code><!-- Resolves views selected for rendering by @Controllers -->
<!-- to .jsp resources in the /WEB-INF/views directory -->
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">... | 1 | 1,102 |
Xcode 13 - A valid provisioning profile for this executable was not found | <p>I'm trying to install the app into my real device "iOS 15.0.1"</p>
<p>In Xcode, the Automatically manage signing disabled</p>
<p>I added a provisioning profile from the developer site, and here is a screenshot that’s proving it's good.</p>
<p>This issue just appears when I disable the automatically managin... | 1 | 1,175 |
Authors and affiliations in the YAML of RMarkdown | <p>I know this question was already asked in the past in this forum (<a href="https://www.google.es/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwjRvauGlZjeAhXMx4UKHWBeDkMQFjAAegQICRAB&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F29532214%2Fadd-author-affili... | 1 | 2,515 |
Implement Digital Signature in Client /Web Server Architecture | <p>I am trying to implement digital signature in web application as example provided by by Bruno Lowagie in White Paper.</p>
<p>4.3.3 Signing a document on the server using a signature created on the client</p>
<p>Pre-signing— the client asks the server for a hash.</p>
<p>Post-signing— the client sends the signed by... | 1 | 3,578 |
General structure when using React.js | <p>Looking at <a href="https://www.youtube.com/watch?v=-DX3vJiqxm4">the Virtual DOM in React.js</a> and by doing a few performance tests, I'm very interested in this library. It seems like the perfect add-on to Backbone's awesome model, router and collection structure.</p>
<p>However, due to the lack of quality tutori... | 1 | 2,032 |
Unable to resolve service "Zend\Db\Adapter\AdapterInterface" to a factory | <p>I am a newbie to zf.I downloaded the album project from github and started working on it . I did all the configuration as been written in the tutorial .
But i am getting this error continuously .
<code>Unable to resolve service "Zend\Db\Adapter\AdapterInterface" to a factory; are you certain you provided it during... | 1 | 3,881 |
Why Doctrine2 ODM's results of findBy() and createQueryBuilder()->getQuery()->execute() differ from each other? | <p>I have tried two different ways to do the same query with Doctrine's MongoDB-ODM.</p>
<p>Can you figure out that why the two, in my opinion similar queries both return different result? Snippet 1 doesn't return anything where Snippet 2 returns correct database entries. Both of the queries seem similar in the log fi... | 1 | 1,295 |
Unable to change Font Color of text while writing to excel file using Java | <p>I have a requirement to take the test data from Excel sheet and write test result as Pass/Fail in another Excel sheet.
I am using SeleniumRC+Java+Eclipse+Junit.</p>
<p>How can i change font color of text while writing to Excel sheet using Java.</p>
<p>I am doing with the help of Label, WorkBook, WrittableWorkbook,... | 1 | 1,251 |
MongoDB Overflow sort stage on text search | <p>Using <a href="http://www.mongodb.org/">MongoDB</a> v2.6, it's not uncommon that if one is sorting a <a href="http://docs.mongodb.org/manual/core/cursors/">cursor</a> from a large result set to get an <a href="https://jira.mongodb.org/browse/SERVER-14142">overflow</a>.</p>
<pre><code>cursor = db.collection.find( { ... | 1 | 1,422 |
Hiding Tkinter root window while showing modal window | <p>I have a TKinter-based application that attempts to manage settings for a game. Users may have multiple versions of this game installed, and in that case, I need to ask the user which installation they want to manage on startup. That part works well enough on its own; the selection dialog pops up after the main wind... | 1 | 1,279 |
Android: How to send sms with particular SIM in dual sim mobiles? | <p>I found some <a href="https://stackoverflow.com/questions/27351936/how-to-send-a-sms-using-smsmanager-in-dual-sim-mobile/30677542#30677542">code</a> to do this, but It's giving me an exception ( Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference). I am testing w... | 1 | 1,553 |
Mapping a dynamic JSON object into Java POJO with Jaxb / Jersey | <p>I would like to map from JSON-Response into my Java Object using Jaxb/Jersey. I have such Json response:</p>
<pre><code>{
"fuzzy": false,
"hits": [
{ ... }
],
"filters": {
"category": {
"selected": false,
"values": { }
},
"id": "category",
"name": "Kategorie"
},
... | 1 | 1,782 |
React app freezing due to useEffect hook in 16.9 while working fine in 16.8 | <p>The code runs fine on React 16.8, yet freezes on >=16.9. I looked at the changes for 16.9 but all it mentioned was an additional <em>warning</em> when there's an infinite loop, not an actual change in behaviour, so this shouldn't be happening, yet it is. </p>
<p>Setting useEffect's dependency to [] does break the l... | 1 | 1,290 |
phoneauthprovider's oncodesent not working | <p>So I have been trying to solve this problem but I can't seem to know what's wrong. I have a button that when clicked calls PhoneAuthProvider which has 4 options: OnVerifiicationCompleted, OnVerificationFailed, OnCodeSent, and onCodeAutoRetrieval. The problem is that oncodesent is being called but the code that I put... | 1 | 1,584 |
can we check form is disabled or not in angular reactive form? | <p>I am using the reactive form in my angular9 for form validation. now I need to hide the submit button which is percent outside of this form, if the form is disabled(all the field in the form is disabled). is there any variable or method percent in formgroup to achieve this?</p>
<pre><code>formValidationConfig() {
... | 1 | 1,210 |
Getting "no transaction is in progress" in Spring Junit test | <p>I'm using Spring 3.1.1.RELEASE, JUnit 4.8.1, Hibernate 4.1.0.Final, and hibernate-jpa-2.0-api. I'm trying to run this JUnit test …</p>
<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:test-context.xml" })
public class UserDaoImplTest extends AbstractTransactionalJUnit4SpringCon... | 1 | 3,697 |
Unable to load config file in smarty | <p>I'm new to PHP and smarty, I don't know how to solve this. This is a rough idea about my project directory</p>
<p>MyProject</p>
<pre><code>->include
->configs->site.conf
MyProject ->include->config.php
MyProject ->libs->smarty->plugins
MyProject ->libs->smarty->sysplugins
MyProject... | 1 | 1,267 |
ActionBar list navigation: different text color in header and pop up menu | <p>I have a navigation list in my action bar that has a dark background. The pop menu however, has a white background.</p>
<p>So what I want to achieve is, that the item text color inside of the action bar is white whereas the items text color in the menu pop up are black.</p>
<p>This are two examples what I got so f... | 1 | 1,641 |
Firebase push notifications not working properly in some devices | <p>For push notification am using FCM. Iam facing some problem in VIVO V3 phones. <strong>Same code works in other devices (Blackberry,Huawei,Samsung) with all below scenarios</strong>
I have tested with 3 Scenarios;</p>
<ol>
<li>When app is in foreground.</li>
<li>When app is in background.</li>
<li>When app is in co... | 1 | 1,753 |
.NET WPF XAML "BindingExpression path error: ... property not found" | <p>I was trying to bind a collection of my W3CError type objects to a WPF ListView control.</p>
<p>It was a nice little 13 line class...</p>
<pre>
Class W3CError
Public Type As ErrorOrWarning
Public Line As Integer
Public Col As Integer
Public Message As String
Public MessageId As String
Publ... | 1 | 1,190 |
WCF in Silverlight - how to set change the default timeout of 1 minute | <p>I have a WCF service I am connecting to in in a Silverlight project. The task the service needs to do takes over a minute (which is fine), but I get an error. I communicate to it via a proxy (created by dev studio when you add a service reference)</p>
<blockquote>
<p><code>The HTTP request to 'http://localhost/I... | 1 | 1,282 |
xsendFile downloads have 0 bytes | <p>On LAMP stack, I can not get xSendFile to work. The problem is that the downloads have 0 bytes.</p>
<p>In order to be sure that I have xSendFile installed, I have added this to my <code>.htaccess</code> file:</p>
<pre><code><IfModule mod_xsendfile.c>
SetEnv MOD_mod_xsendfile 1
</IfModule>
</code></pr... | 1 | 1,556 |
How to scale Apache Camel route? | <p>I have the following routes:</p>
<pre><code><camelContext xmlns="http://camel.apache.org/schema/spring">
<threadPoolProfile id="defaultProfile"
defaultProfile="true" poolSize="100" maxPoolSize="200" />
<route>
<from uri="amq:example.MyQueue" />
<setHeader ... | 1 | 1,239 |
PHP Sessions issues while on server but no on localhost | <p>I'm passing the user variable through sessions. It works fine on the localhost but once on the web server it does weird things. </p>
<p>After logging in, the session variable works as should.....until you click on about three pages and it suddenly goes POOF!</p>
<p>Notice the "<code>Welcome, jordan.</code>" as opp... | 1 | 1,832 |
fosuserBundle multiple firewalls check path configuration | <p>I am using Symfony2 2.3 and FosUserBundle. I am trying to create two firewalls. One for the administration section and the other for frontend. The front end firewall works fine but the admin one doesn't work and it displays this error <code>You must configure the check path to be handled by the firewall using form_l... | 1 | 1,831 |
Audio and Video playing in Windows 10 universal app? | <p>I need to play audio and video in windows app where I Get the Url from networkcall and I need to add Url to Source.
I tried in this way, But no video is played or audio is played.
Someone help me in how to achieve this?
Is there any other way to achieve this?</p>
<p>Thanks in Advance.</p>
<p>My xaml code: </p>
<p... | 1 | 1,035 |
JavaFX, List to ObservableList to ListView | <p>So my problem is, that I have an serilized ArrayList and have to update it in my GUI to show its content in a ListView dynamically.
The serialization and deserialization works fine with the use of a DAO interface but the GUI won't refresh my ListView.</p>
<p>This class holds my data interaction (mostly save, load..... | 1 | 1,885 |
SonarQube analysis failed java.lang.OutOfMemoryError: Java heap space | <p>I am using SonarQube version 5.3 and using Jenkins version 1.651 to start the Sonar Scanner. I am also using the Sonar Java plugin version 3.11-build4121.</p>
<p>There seems to be a problem the memory. From my debugging I found that a possible solution may be to increase the maximum Java Heap size by using the flag... | 1 | 3,051 |
Obtaining XML in the Request Body for Post in Nest.js | <p>I am curious if it is possible to obtain XML data in the Request Body of Nest.js.</p>
<h2>Dependencies</h2>
<pre><code>"dependencies": {
"@nestjs/common": "^7.0.0",
"@nestjs/core": "^7.0.0",
"@nestjs/platform-express": "^7.0.0",
</code></pre>
<h2>Requirement</h2>
<p>I wish to have an HTTP POST API ca... | 1 | 1,273 |
How to change the colour of placeholder and input field of matInput field using of Angular material | <p>In my code (see below) I want to set the colour of placeholder i.e Username and Password and a margin below it to <em>white</em>.</p>
<p>Means the Username and password text should be of white colour and border below it should also be of white colour as i am using a dark back-ground colour.</p>
<p>How can I achiev... | 1 | 1,106 |
Rails 5.2 Polymorphic Association with polymorphic conditional | <h3>MODELS:</h3>
<pre><code>class Car < ApplicationRecord
belongs_to :user
has_one :listing, as: :listable
has_one :firm, as: :firmable
has_one :seller, as: :sellable
end
class Truck < ApplicationRecord
belongs_to :user
has_one :listing, as: :listable
has_one :firm, as: :firmable
has_one ... | 1 | 1,069 |
ReactDOM.hydrate() not working after initial SSR (React JS) | <p>After my initial server-side render of the application, my onClick event (on a button in my Homepage.js component) is not executing. It seems my ReactDom.hydrate() in my client.js file is not working. Any help would be greatly appreciated! You can go to the following repo for whole code base <a href="https://github.... | 1 | 2,551 |
Spring controller is not supporting ServerHttpRequest | <p>I am using ServerHttpRequest as the request parameter in my Rest Controller. But in the response I'm getting error as "No primary or default constructor found for interface org.springframework.http.server.reactive.ServerHttpRequest".</p>
<p>I found one similar <a href="https://stackoverflow.com/questions/53615945/s... | 1 | 2,198 |
Printing MySQL Query Results to JSP from Java Servlet | <p>Right now I am facing the following two problems with this script.</p>
<p>1) When I run a command like <code>SELECT * FROM table;</code> it only returns the column names. When I run a command like <code>SELECT columnName FROM table;</code>, it displays the output perfectly. What could be causing this error?</p>
<p... | 1 | 2,950 |
Terraform Invalid count argument that depends on another resource | <p>I'm getting the following error when trying to do a plan or an apply on a terraform script.</p>
<pre><code>Error: Invalid count argument
on main.tf line 157, in resource "azurerm_sql_firewall_rule" "sqldatabase_onetimeaccess_firewall_rule":
157: count = length(split(",", azurerm_app_service.app_... | 1 | 1,529 |
java.lang.NoClassDefFoundError: org/apache/http/ssl/TrustStrategy, though it is present in classpath | <p>I am running an application on tomcat server. I am getting following error while callling a specific function : </p>
<p><strong>java.lang.NoClassDefFoundError: org/apache/http/ssl/TrustStrategy</strong></p>
<p>My class is :</p>
<pre><code>import java.io.ByteArrayOutputStream;
import java.io.Serializable;
import j... | 1 | 2,090 |
RESTEasy client. could not find writer for content-type application/xml | <p>I am trying to connect to a web-service with RESTeasy.</p>
<p>The code I am using is this:</p>
<pre><code>WebTarget resource = client.target(URL_DISPLAY);
Builder request = resource.request(MediaType.APPLICATION_XML);
long startTime = System.currentTimeMillis();
ClientResponse response = (ClientResponse)request.p... | 1 | 1,054 |
javax.swing.JComboBox cannot be cast to javax.swing.JButton | <p>Here's the code I am using:</p>
<pre><code>public void actionPerformed(ActionEvent arg0) {
JButton buttonPressed = (JButton) arg0.getSource();
JComboBox selectedOption = (JComboBox) arg0.getSource();
if (buttonPressed.getText() == "Spam!") {
if(emailModeBoolean)
sendSpam(sendBox.get... | 1 | 1,112 |
No coercion operator is defined between types 'System.Int16' and 'System.Boolean' | <p>I am using a helper class to build an expression which I then want to pass to a <code>.Select()</code> call on a EF Core <code>DbSet</code> so that I can dynamically select fields from the database and ignore large fields that I don't care about.</p>
<p>The helper class looks like this:</p>
<pre><code>public stati... | 1 | 2,246 |
How to query default namespace with MSXML | <p>I have some XML:</p>
<pre><code><?xml version="1.0" ?>
<Project ToolsVersion="4.0">
<PropertyGroup Condition="'$(key)'=='1111'">
<Key>Value</Key>
</PropertyGroup>
</Project>
</code></pre>
<p><strong>Note</strong>: This isn't the actual XML i'm using, it's... | 1 | 1,497 |
Pass scroll event to another view | <p>I have been using android design support library for collapsing toolbar layout.
Everything works fine except that I want to scroll the whole view on scrolling content in collapsingBarlayout</p>
<p>Here's the xml layout :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.Draw... | 1 | 2,434 |
React - Axios promise pending value undefined | <p>I'm trying to build a weather app using React, react-autosuggest for a dropdown listing available cities and for api fetching Axios. </p>
<p>App.jsx</p>
<pre><code>import React, { Component } from "react";
import CityWeather from './components/CityWeather';
import SearchWeather from './components/SearchWeather';
... | 1 | 3,127 |
How to Change a css property based on a state of another component | <p>I'm building a web page with gatsby which is based in react, and I need my nav component changes his sticky position to relative or auto, every time that I open the modal of the gallery component..but I don't know how to approach and solve the problem. The nav component belongs to the layout component which is Galle... | 1 | 2,467 |
PARSING A COMPLEX XML USING DOM | <p>I know that this sort of question has been asked here before, but still i couldn't find any solution to my problem. So please, can anyone help me with it.....</p>
<p><strong>Situation:</strong> </p>
<p>I am parsing the following xml response using DOM parser.</p>
<pre><code><feed>
<post_id>16</post... | 1 | 3,055 |
R - ensemble with neural network? | <p>This is a small sample of my data.frame </p>
<pre><code> naiveBayesPrediction knnPred5 knnPred10 dectreePrediction logressionPrediction correctClass
1 non-bob 2 2 non-bob 0.687969711847463 1
2 non-bob 2 2 non-bob 0.... | 1 | 1,213 |
React router not changing url | <p>I'm new to React(1 week :P). I have an app that hits an api based on a search term. From those results a user is able to favorite items from the results. When a I clicks on the link for favorites, I am directed to the correct component and the url reflects this change. However, when I enter a new search term, from t... | 1 | 1,391 |
How to clear Cache in iOS? | <h2><strong>TLDR</strong>: <strong>How, based on my current cacheManager, do I clear cache? What code should I use and how?</strong></h2>
<p>I have the bellow cacheManager class which I use to cache user created videos. <a href="https://stackoverflow.com/questions/55819016/how-do-i-asynchronously-download-and-cache-vi... | 1 | 1,432 |
Point Cloud Library Build Errors in Visual Studio | <p>I am trying to use the Point Cloud Library in conjunction with the kinect for a paper, but when I followed <a href="http://www.pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php" rel="nofollow">this tutorial</a>, and tried to compile the solution in Visual Studio 2010, I had a couple of build errors:</... | 1 | 1,367 |
How to Get the value of selected checkbox item in android? | <p>I am developing quiz like application (multiple choice question) that receives the question from the server and send the answer collection to server button click. For this I have used ListView that consist TextView for the question and four checkbox items for 4 choices. I have successfully written code to receive th... | 1 | 4,445 |
Reading notes from MIDI file using NAudio | <p>Task is to get all notes and their time from MIDI file using NAudio library. So far I get all notes from file but I can't get their time.</p>
<pre><code> Note noteOn = new Note(); //custom class Note
MidiFile midi = new MidiFile(open.FileName);
List<TempoEvent> tempo = new L... | 1 | 1,146 |
:root CSS variables are not set to element styles | <p>Please have a look at <a href="https://stackblitz.com/edit/angular-swpjwt?file=app%2Fapp.component.scss" rel="noreferrer">Stackblitz</a> or the code below <br>
Having a problem where variables from :root are not set to elements. But when I rename <strong>:root</strong> => <strong>.component</strong>. It works as exp... | 1 | 1,389 |
elementtree: get the contents of specific tags in xml document | <p>I am trying to extract the contents of specific tags in an XML file.</p>
<p>Sample XML:</p>
<pre><code><facts>
<fact>
<name>crash</name>
<full_name>Crash</full_name>
<variables>
<variable>
... | 1 | 1,707 |
Grid.Mvc column details on click? | <p>Am trying to implement the Grid.Mvc details as shown on their page and 'Sample Screenshot' at <a href="http://gridmvc.codeplex.com/" rel="nofollow">http://gridmvc.codeplex.com/</a> </p>
<p>Here it shows "Order details" on the right side, from clicking on one of the rows? The goal is to implement this, add ActionL... | 1 | 1,040 |
Intermittent 403 CORS Errors (Access-Control-Allow-Origin) With Cloudfront Using Signed URLs To GET S3 Objects | <h1>In Brief</h1>
<p>In order to keep the uploaded media (S3 objects) private for all the clients on my multi-tenant system I implemented a Cloudfront CDN deployment and configured it (and its Origin S3 Bucket) to force the use of signed URLs in order to GET any of the objects.
<br><br><br></p>
<h1>The Method</h1>
<... | 1 | 1,866 |
Theano multiple tensors as output | <p>I am using Theano to create a neural network, but when I try to <strong>return two lists of tensors at the same time in a list</strong> I get the error:</p>
<pre><code>#This is the line that causes the error
#type(nabla_w) == <type 'list'>
#type(nabla_w[0]) == <class 'theano.tensor.var.TensorVariable'>
... | 1 | 1,131 |
Nested Foreach Loops (PHP) | <p>So basically what i want is to display some some variables with foreach, but it need to be done with nested loops as it has submenus.</p>
<p>This is the list:</p>
<pre><code><whmcsapi>
<action>getclientsdomains</action>
<clientid>123</clientid>
<totalresults>2</totalresult... | 1 | 1,029 |
How to set values for all columns except one? | <p>My code works great, all it does is take events from a spreadsheet and creates them on google calendar.
However, one of the columns in my spreadsheet contains a formula. Everytime I run the code, the formula disappears and is replaced by whatever is on that cell at the time.</p>
<p>I know this is where the issue i... | 1 | 1,027 |
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'image' cannot be null | <p>I am struggling with my working on a upload a file that was made out of Laravel. I had followed some tutorials on youtube but I can seem to expand the toggle button when the screen size is reduced to the smallest. Since I'm starting a new project, I applied all of this with Laravel and opened the edit.blade.php file... | 1 | 1,915 |
json file I/O with pretty print format using gson in java? | <ul>
<li>I already know how gson works and also know how to enable pretty
print.</li>
<li>I want to use gson and not simplejson.</li>
<li>The problem I had is that I wasn't able to create a file consisting of a List of <strong>Employee</strong> objects.</li>
<li>I've seen every other <strong>java</strong> threads in st... | 1 | 3,262 |
Call jquery ajax "POST" with crossdomain jsonp from C# ASP.NET asmx | <pre><code>$.ajax({type: "post",
url: "http://test.com/Register",
data: {
"UserID": '12',
"FirstName": 'FN1'
},
accept: {
json: "application/json",
jsonp: "application/javascript"
},
dataType... | 1 | 1,138 |
Migrating existing Git repo to new Git LFS enabled repo | <p>My existing Github repo is getting bloated with zip and tar.gz files so I want to migrate it to a <strong>new</strong> Git LFS enabled repo that is separate from existing Github repo for testing so that existing Github repo is <strong>untouched</strong>. I came across a wonderful tool called bfg-repo-cleaner <a href... | 1 | 1,037 |
How do I correctly set up a Marionette EventAggregator as a Require.js module | <p>I'm trying to setup a vent/EventAggregator as a separate Require.js module. I am using Marionette 1.0.2 (which I believe has a different implementation than legacy versions pre 1.0.0) with wreqr included: this code is from backbone.marionette.js:-</p>
<pre><code> // Event Aggregator
// ----------------
// A ... | 1 | 1,217 |
CMake with Qt to include modules xmlpatterns | <p>I am trying to switch from QMake to CMake. I get my first error like this:</p>
<pre><code>Target "aacmakeqt" links to target "Qt::xmlpatterns" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
</code></pre>
<p>I wonder how to know or find ... | 1 | 1,181 |
Angular UI Router - Dynamic states get double slashes when navigated to with ui-sref | <p>I'm creating a CMS system so I want the states to be dynamically created. Since you can't make http requests within the config phase I decided to add my routes in the .run() function as described here: <a href="http://blog.brunoscopelliti.com/how-to-defer-route-definition-in-an-angularjs-web-app" rel="nofollow">http... | 1 | 2,072 |
unable to recognize "filebeat-kubernetes.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1" | <p>I'm trying to run FileBeat on minikube following this doc with k8s 1.16
<a href="https://www.elastic.co/guide/en/beats/filebeat/7.4/running-on-kubernetes.html" rel="noreferrer">https://www.elastic.co/guide/en/beats/filebeat/7.4/running-on-kubernetes.html</a></p>
<p>I downloaded the manifest file as instructed</p>
... | 1 | 2,298 |
Scalatest and scalamock - dependency trouble involving SuiteMixin | <p>I'm trying to setup my project to use scalatest and scalamock.
I'm using scala version 2.10.0. <br>
However, I cant seem to get the dependencies right. </p>
<p>I've started with this code: </p>
<pre><code>class ControllerTest extends org.scalatest.FunSuite
with org.scalamock.scalatest.MockF... | 1 | 1,028 |
Why does Windows draw its own min-max-close buttons, even if the WM_NCPAINT is correctly(?) reimplemented? | <p>As we can see from this screenshot I took:</p>
<p><a href="http://www.picpaste.com/pics/skinned_window.1386408792.png">http://www.picpaste.com/pics/skinned_window.1386408792.png</a></p>
<p>for some strange reason Windows draws its own (un-styled) minimize/maximize/close button in the titlebar
on top of my skinned ... | 1 | 4,338 |
How to setup wxWidgets in VSCode for GCC? | <p>I'm trying to make a GUI-Project with wxWidgets. Instead of using Visual Studio I want to use VSCode with the GCC (MinGW).<br>
I'm facing the following problem: <strong>I can't compile or run any code which has wxWidgets librarys included. How have the c_cpp_properties.json and the tasks.json files to be configured?... | 1 | 1,987 |
Help making an eraser for a paint program in java | <p>Making a very basic paint program for a class and one of the requirements is that we must make an eraser. Not sure how to do that, We are using a bufferedimage that is then getting pasted to our jframe. Any ideas on how this could be done/ any code examples? Someone told me to try clearRect but maybe I was just usin... | 1 | 3,259 |
Can't convert object of type java.util.ArrayList to type model | <p>I'm trying to load data to RecycleView from Firebase. But I get convert error.</p>
<pre><code>com.google.firebase.database.DatabaseException: Can't convert object of type java.util.ArrayList to type uk.co.stableweb.kithunugee.model.Hymn
at com.google.android.gms.internal.zzaix.zzd(Unknown Source)
at com.g... | 1 | 2,590 |
Reducing on Results obtained by jquery selector | <p>The code I used looks something like this:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
var total = $('#exam-percent-weightage > td &... | 1 | 1,279 |
Xamarin Forms Binding Command from View Model to Button in List View Data Template | <p>I am building social post sharing application using Xamarin.Forms 2.4 and it talks to my API.</p>
<p>I have PostsPage which uses PostDataViewModel to load ObservableCollection to ListView defined in PostsPage. Data template of list views points to view file. However, in Post View Template I can bind to individual p... | 1 | 6,064 |
Mac OSX: ld cannot find an existing library | <p>I installed Google Test according to <a href="https://stackoverflow.com/questions/20746232/how-to-properly-setup-googletest-on-os-x-aside-from-xcode/21045113#21045113">How to properly setup googleTest on OS X aside from XCode</a>. I am trying to run</p>
<pre><code>clang++ -I/usr/include -L/usr/lib t.cpp -lgtest
</c... | 1 | 1,651 |
How do we fit a sigmoid function in Python? | <p>For reproducibility reasons, I am sharing the simple dataset I am working <a href="https://drive.google.com/open?id=1Ip-ez4X4FGI07lWr6gmyz3PzIaUDbhR-" rel="nofollow noreferrer">here</a>.</p>
<p>To make it clear of what I am doing - from column 2, I am reading the current row and compare it with the value of the pre... | 1 | 1,282 |
Tomcat 7 returns "304 Not Modified" on modified/non existent resource | <p>I am developing a web application that runs on Struts2 and Tomcat 7.0.42.<br>
I wrote an action that dinamically generates a jsp file, <em>generated.jsp</em>, with some image references in it and creates the associated "_files" folder containing the images. </p>
<p>The action is called in another page, <em>request.... | 1 | 2,078 |
[cloud-running-a-container]: No resources found in default namespace | <p>I did a small deployment in K8s using Docker image but it is not showing in deployment but only showing in pods.
Reason: It is not creating any default namespace in deployments.</p>
<p>Please suggest:</p>
<p>Following are the commands I used.</p>
<pre><code>$ kubectl run hello-node --image=gcr.io/$DEVSHELL_PROJEC... | 1 | 1,124 |
Resque.enqueue failing on second run | <p>I am trying to port an app from Rails 3.0.3 to Rails 3.1rc... I don't think I've missed out anything, in terms of configuration. The process works perfectly in Rails 3.0.X and not in 3.1rc.</p>
<p>In console, I do:</p>
<pre><code>Resque.enqueue(EncodeSong, Song.find(20).id, Song.find(20).unencoded_url)
</code></pr... | 1 | 4,063 |
Jmeter beanshell Sampler_ Getting Error invoking bsh method | <p>can we use vars.put to add the members of array list?</p>
<p>Below is my code which is throwing exception at at line 10, column 25
and error is:</p>
<blockquote>
<p>Error invoking bsh method: eval In file: inline evaluation of:
``import java.util.List; import java.util.ArrayList; public static
void main(S... | 1 | 1,320 |
XC8 Interrupt Configuration | <p>I am trying to write a timer interrupt for a pic16f887. I have checked on several websites and most of them recommend writing the interrupt subroutine as </p>
<p>void interrupt Name (void)</p>
<p>however my program says that by doing so I am conflicting my interrupt name with the Isr.
main.c:42: error: (1375) mult... | 1 | 1,186 |
How to extract layers' blob information in caffe? | <p>I used <a href="http://caffe.berkeleyvision.org/" rel="nofollow noreferrer">caffe</a> for my machine learning in <strong><code>C++</code></strong>.</p>
<p>After passing through the network as <code>net_->Forward();</code>, I like to extract individual layer's information.</p>
<p>What I did was</p>
<pre><code> ... | 1 | 1,316 |
Error: 'class' does not name a type C++ | <p>I've seen many posts of this matter. But couldn't fix my problem anyhow. </p>
<p>My problem is that I want to send a bang from my class B to my class A. class A already got class B declared (B b;) but cant do the same in class B (A a;)</p>
<p>Seen that if class A includes class B. Then if class B includes class A ... | 1 | 2,275 |
User creation with unique constraint in Django Rest framework | <p>I researched about it in Google, and have tried in lot of ways but still not able to get it right. Here are the requirements:</p>
<ol>
<li>A one to one field for extending User model, so this has been achieved and the new model is called Customer.</li>
<li>Now, with new user 201 response is returned BUT not all the... | 1 | 4,111 |
SharePoint 2010 - RichImageField not displaying in display mode | <p>I am currently doing some research into SharePoint Page Layouts and building pages based on those layouts.</p>
<p>I currently have a page layout containing several RichImageFields and RichHtmlFields, but it seems that the first RichImageField is not displaying (doesn't even render out anything).
As far as I can see... | 1 | 2,070 |
Razor Pages POST Multiple Forms w/ Model Binding | <p>I have multiple forms on a single razor page that I want to be POSTed after one button is clicked. I tried using a javascript function that would .submit() both forms (put in the onclick= of the button), but only one form's values were actually passed to the OnPost() method serverside. Here's the relevant code from ... | 1 | 1,120 |
How to select radio buttons and submit a form | <p>This is the HTML:</p>
<pre><code><form method="post" action="./xxxxx" name="form1">
<input type="hidden" name="requestKey" value="52032a76cf53340b07052fd143feddc4a9d8f18130c80ec86003ab56e0d91b36"/>
<input type="hidden" name="option" value="txnlist">
<input type="hidden" name="accoun... | 1 | 2,271 |
PHP -> SOAP -> Magento Webservice: get Cookies set by Magento | <p>I am new to Magento Web-Service and have to expand it.
The Webservice shell be able to login an customer, give me the session cookie back so that I can redirect to a file that sets the cookie again, redirects me and I can see my cart and proceed to checkout on the Magento Store.</p>
<p>The Problem:
Magento creates ... | 1 | 1,224 |
How to pass an Object from one JSP to other JSP? | <p>I have two jsp files, jsp1 and jsp2. When an edit button clicked on jsp1 will call a java script function . From javascript function i am calling jsp2. I used window.open beacuse i need this jsp2 as opens as a popup.Now i want to pass an object from jsp1 to jsp2 when i click edit button.How can i do that?.</p>
<pre... | 1 | 1,160 |
Angular reactive form : hasError function returns true but error is not displayed | <p>I've a weird problem with angular reactive form specially with "hasError" function. I check if my input contains a mac address. The function hasError sends me true but the error is not displayed.</p>
<p>I get my data from an API. The data has been sent by postman software not by my form so it's not a normal way. BU... | 1 | 1,105 |
pymysql.err.InternalError: Packet sequence number wrong | <p>I am using python 2.7 and the pymysql module to extract data from a MySQL database. I keep getting the error (at the bottom) when I execute the following code to select data (the error follows execution of the query):</p>
<pre><code>conn = pms.connect(Host,User,Pwd,DB)
with conn:
cur = conn.cursor() # Create c... | 1 | 1,338 |
Export of name 'matAutocomplete' not found | <p>I am unable to understand what went wrong with my code, I imported the modules and still I am getting this error " Export of name 'matAutocomplete' not found"</p>
<p>Note: I restarted my IDE compiled again several times after importing MatAutocompleteModule, still the same.</p>
<p>here is app.module.ts - P... | 1 | 1,062 |
Symfony form collection | <p>I'm trying to add a formType in a other form type.</p>
<p>CustomerType:</p>
<pre><code>class CustomerType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('firstname', 'text', array(
'required' => 'required'
... | 1 | 1,324 |
Install Nokogiri 1.6.1 under Ruby 2.0.0p353 (rvm based installation) fails (OSX Mavericks)? | <p>I've tried to install Nokogiri 1.6.1 under Ruby and RVM but is failing with the following error:</p>
<pre><code>Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/lmo0/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin... | 1 | 1,115 |
I cant build my game in unity. How can i fix it? | <p><img src="https://i.stack.imgur.com/tpK9h.png" alt="enter image description here" />
How can i fix it?</p>
<p>I tried restart and upload sdk. I need help.</p>
<p>I tried build app for google play store</p>
<p>they are errors :</p>
<p>Is this problem about my game or my settings or unity i dont know but i need fix it... | 1 | 1,413 |
The character sequence "]]>" must not appear in content unless used to mark the end of a CDATA section | <ol>
<li>I have xml from url.</li>
<li><p>xml structure is like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?><xml><root>
<row>
<company><![CDATA[ ]]></company>
<id>10331</id>
<account></account>
<terms> </terms>
<level>s... | 1 | 4,375 |
How do I get cell row and column indexes of UWP Grid control? | <p>I've been trying to get the row index and the column index when specific cell of grid control is tapped. So far nothing...</p>
<p>I achieved to take the absolute value of X and Y when I tap somewhere on the grid control.</p>
<pre><code>private void gridGameBoard_Tapped(object sender, TappedRoutedEventArgs e)
{
... | 1 | 1,473 |
MailX: "Error in certificate: Peer's certificate issuer has been marked as not trusted by the." | <p>I am trying to send an alert programmatically. The alert will be sent using a system. In this case, it is Cloudera Alert Publisher. Cloudera Alert Publisher sends system alerts to the admin team. </p>
<p>Here I have the configuration issue. </p>
<p>The biggest issue comes from security. From the security perspecti... | 1 | 1,353 |
How to add a colorbar to one subplot axes | <p>I'm trying to create a figure using matplotlib, but it's not working as smoothly as I expected. I would like to create a composite figure with 4 images on the top row, and 1 long image directly below the 4 images. I want to to add a colorbar only for the bottom image, however, it's throwing errors.</p>
<pre><code>im... | 1 | 1,068 |
Entity Framework Core update column with foreign key reference | <p>This is the simplified version of the table structure I have:</p>
<pre><code>[Table("PolicyMapping")]
public class PolicyMapping
{
[Key]
public Guid Id { get; set; }
public Policy PolicyA { get; set; }
public Policy PolicyB { get; set; }
public Lookup_Bank Bank { get; set; }
}
[Table("P... | 1 | 1,395 |
Rails RoutingError (uninitialized constant | <p>I'm trying to create a simple registration model that will respond only to json:</p>
<pre><code>class Api::RegistrationController < ApplicationController
skip_before_filter :verify_authenticity_token
respond_to :json
def register
build_resource(sign_up_params)
if resource.save
render :status... | 1 | 1,871 |
matplotlib says image is too large when it's not | <p>I'm doing this plotting in Jupyter Notebook:</p>
<pre><code>fig = plt.figure()
fig.suptitle("{0} nodes".format(i*4))
print("put suptitle")
fig.text(0,0,s="error: {0}".format(errors[i-1]))
print("put text")
plt.plot(means, np.zeros(means.shape), "go")
print(means.shape)
plt.plot(patterns_test, outputs, "r.", labe... | 1 | 1,703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.