title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Submit form using JS and AJAX | <p>I have little problem with JS and AJAX, i dont know this languages. I know php and i have applied for position php developer, now i have some tasks to do and i stucked at one. It is simple task, form, submit, process information, store in DB, and send. Only problem is i have to use AJAX to submit form, i done little... | 0 | 1,061 |
Send focus to dynamic li with jQuery | <p>I was wondering if you can send focus to a dynamic li. Here's what I'm trying to do:</p>
<p>I've got a search box that has a keyup function bound to it where it searches for people's names. The results appear in a div right below the search box with a ul of results. I was hoping to make it where if someone hits the... | 0 | 1,154 |
How to develop an Avahi client/server | <p>I am trying to develop a client/server solution using python, the server must broadcast the service availability using Avahi. I am using the following code to publish the service:</p>
<pre><code>import avahi
import dbus
__all__ = ["ZeroconfService"]
class ZeroconfService:
"""A simple class to publish a networ... | 0 | 1,414 |
new ChromeOptions()` is preferred to `DesiredCapabilities.chrome() | <p>I am new at Java Test Automation. I receive below message when I run my test.
What is wrong it? Thanks by now.</p>
<blockquote>
<p>Message: org.openqa.selenium.remote.DesiredCapabilities chrome</p>
<p>INFO: Using <code>new ChromeOptions()</code> is preferred to <code>DesiredCapabilities.chrome()</code>
Starting Chro... | 0 | 1,117 |
JavaScript HTML object HTMLSelectElement | <p>I am trying to create a little HTML form where my users need to select some options from checkboxes and dropdown lists. The intended outcome is a text that is generated dynamically as the users change their choices.
The idea does work but I keep getting “[object HTMLSelectElement]” instead of the value of the selec... | 0 | 1,730 |
Three-tier architecture implementation in Windows form application | <p>I am trying to insert data into a database using a three-tier architecture, but I am stuck and I cannot proceed further.</p>
<p>This is my code</p>
<p><strong>First is UI part:</strong></p>
<pre><code> public void assignField()
{
string maritalCondition = "";
string sex = "";
assig... | 0 | 1,656 |
Gradle compileJava task warning: [options] bootstrap class path not set in conjunction with -source 1.6 | <p>Below is the content of the <strong>build.gradle</strong> file:</p>
<pre><code>apply plugin: 'java'
archivesBaseName = 'foo-bar'
version = '1.0'
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
sourceSets.main.resources.exclude 'foo.jks'
compileJava{
... | 0 | 2,773 |
Spring REST API with Multipart File Upload not working for optional parameter | <p>I'm using Spring framework, but not too familiar with it. I'm writing a REST API, specifically a POST method that handles a file upload where the file is optional.</p>
<p>I've tried to simplify the method down but still having a problem. Here is what I have</p>
<pre><code>@RequestMapping(method = RequestMethod.POS... | 0 | 2,057 |
How to Post JSON array using Retrofit 2 | <p>I need to post an JSON object using Retrofit 2. My JSON object is</p>
<blockquote>
<p>{
"logTime" : "",
"datas" : [
{
"dat1": "1",
" dat2": "",
" dat3": "",
... | 0 | 1,277 |
ASP.NET Hiding a <asp:Panel>/<th>/<tr>/<td> inside a ListView | <pre><code><asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="itemHolder"
OnItemCommand="listViewCmd" OnItemDeleting="OnItemDeleting"
OnItemEditing="OnItemEditing">
<LayoutTemplate>
<table class = "tblItemDetail" style = "color:Black;" wid... | 0 | 2,041 |
Recursively parsing JSON via JSONObject to fetch value against specific keys | <p>I have a complex JSON as below which I need to parser recursively. The end result of recursion is Map> type of object where key is the audience - name value and the inner map is Text-key, Title-value.
This is just a part of the complete JSON.</p>
<pre><code>"sections": {
"1": {
"1": {
"1": {
"t... | 0 | 6,444 |
How does jquery mobile hide mobile safari's addressbar? | <p>How does jQuery mobile hide mobile safari's addressbar? I think I need a similar solution,
but i don't want to use jQuery mobile ...</p>
<p>I tried:</p>
<p><a href="http://davidwalsh.name/hide-address-bar" rel="nofollow noreferrer">http://davidwalsh.name/hide-address-bar</a></p>
<p>but that doesn't work in my cas... | 0 | 5,604 |
Is dereferencing a pointer that's equal to nullptr undefined behavior by the standard? | <p>An blog author has brought up the discussion about null pointer dereferecing:</p>
<ul>
<li><a href="http://www.viva64.com/en/b/0306/" rel="noreferrer">http://www.viva64.com/en/b/0306/</a></li>
</ul>
<p>I've put some counter arguments here:</p>
<ul>
<li><a href="http://bit.ly/1L98GL4" rel="noreferrer">http://bit.l... | 0 | 1,157 |
CSS + HTML dropdown menu overlapping issue | <p>I have a problem with dropdown menu children overlapping parent element. Please check my fiddle to understand the problem:
<a href="http://jsfiddle.net/ncqke/" rel="nofollow noreferrer">Fiddle example</a></p>
<p>HTML code:</p>
<pre><code><div id="main_category_menu">
<ul id="menu">
... | 0 | 1,857 |
SpringBoot JPA Hibernate: Error creating bean with name 'entityManagerFactory' | <p>I am trying to setup a Spring Boot application, which uses SpringBoot Security to authenticate users, which are stored in my MySQL database.
I have followed some tutorials on how to make this, however, when i try to run the application with maven i get the following error:</p>
<pre><code>org.springframework.beans.f... | 0 | 7,534 |
Android, Gradle. How to build application and run tests from test application | <p>I have android project and android test project inside it, located under folder tests. Structure of these project is eclipse like </p>
<p>+-src<br>
| - res<br>
| - libs<br>
| - tests<br>
|..... </p>
<p>I use gradle. All i want is to build app, run unit tests and get reports of them. But i don't understand how t... | 0 | 1,760 |
Inserting multiple checkbox values into a single SQL database column | <p>I'm looking for a simple solution to inserting multiple checkbox selections into a single database column. User selects box 1, 4 and 6 - so the database would reflect "1, 4, 6".. the commas would be nice but are not neccessary. If one checkbox is selected, the information will insert as it should. If multiple are se... | 0 | 1,073 |
How to serialize lazy loaded entities with jackson module hibernate? | <p>I`m trying to build an application with angularjs and springmvc.I have two classes Province and Comunidad. :</p>
<pre><code>@Entity(name="Provincia")
@Table(name="T_PROVINCIA")
public class Provincia implements Serializable{
private String idProvincia;
private String nombre;
private Comunidad refComunidad;
p... | 0 | 1,339 |
Move line Up/Down shortcut in Visual Studio 2012 | <p>In VS2010 I had a shortcut set up <kbd>Alt</kbd>+<kbd>Up/Down</kbd> to move lines of code up or down, just like I used to have in Eclipse in my Java days.</p>
<p>Now since Power Tools and macros (which is how I set up this shortcut in VS2010) are not available in VS2012, how do I get this to work?</p>
<p>I've seen... | 0 | 1,116 |
How to conditionally specify a variable in yocto .bb recipe | <p>I would like to do something like this:</p>
<pre><code>if [ "${BB_NO_NETWORK}" == "1" ]; then
SRCREV ?= "a2d1f0225692c7c054014ec4dfc4dd13a35245ee"
else
SRCREV ?= "${AUTOREV}"
fi
</code></pre>
<p>But I get an unparsed error </p>
<p>Here is what I have got working.</p>
<pre><code>SRCREV_FORMAT = "${@bb.uti... | 0 | 2,522 |
Writing messages to Application Event Log | <p>I am running into an issue writing events to the Windows Event Log. I have looked through the posts and I think I am doing it correctly, but I still get the following error in the event viewer:</p>
<p><strong>the message resource is present but the message is not found in the string/message table</strong></p>
<p>... | 0 | 1,258 |
Check if 2 URLs are equal | <p>Is there a method that tests if 2 URLs are equal, ie point to the same place?
I am not talking about 2 URLs with different domain names pointing to the same IP address but for example, 2 URLs that point to the same .aspx page:</p>
<ul>
<li><a href="http://example.com/Products/Default.aspx?A=B&C=D&E=F" rel="n... | 0 | 1,539 |
How can I keep field values in a form after submit? | <p>After submitting a form it appears that the field values are set back to nothing. I am doing some form validation; if the form is invalid I am having it display an error message from a list of errors but I wish for the field values to stay. Is there a way to do this?</p>
<p>This is my view that validates the form... | 0 | 1,549 |
Authentication with oidc-client.js and Identityserver4 in a React frontend | <p>Lately I'm trying to set-up authentication using IdentityServer4 with a React client. I followed the <code>Adding a JavaScript client</code> tutorial (partly) of the IdentityServer documentation: <a href="https://media.readthedocs.org/pdf/identityserver4/release/identityserver4.pdf" rel="noreferrer">https://media.re... | 0 | 2,491 |
How do you map Kinect's depth data to its RGB color? | <p>I'm working with a given dataset using OpenCV, without any Kinect by my side. And I would like to map the given depth data to its RGB counterpart (so that I can get the actual color and the depth)</p>
<p>Since I'm using OpenCV and C++, and don't own a Kinect, sadly I can't utilize MapDepthFrameToColorFrame method f... | 0 | 1,065 |
uwsgi error python application not found | <p>I've configured my nginx server with uwsgi and python and when I try to run my python application by hitting the url in my browser, the browser returns the message, uwsgi error python application not found. </p>
<p>This is what my uwsgi log looks like:</p>
<pre><code>*** Starting uWSGI 1.0.4 (32bit) on [Tue Jul 31... | 0 | 1,682 |
no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: (String) | <p>I have an entity with the following three constrcuctors</p>
<pre><code>public MyObject() {
// Default constructor to avoid ambiguity
}
public MyObject(String arg1, String arg2, String arg3) {
AnotherType anothertype = new AnotherType(arg1, arg2, arg3);
this.anotherTpe = anotherTpe;
... | 0 | 1,065 |
At what nesting level should components read entities from Stores in Flux? | <p>I'm rewriting my app to use Flux and I have an issue with retrieving data from Stores. I have a lot of components, and they nest a lot. Some of them are large (<code>Article</code>), some are small and simple (<code>UserAvatar</code>, <code>UserLink</code>).</p>
<p>I've been struggling with where in component hierar... | 0 | 1,602 |
Symfony2 FOSUserBundle Overriding Forms | <p>I am trying to change the template for the registration form in my application so that I can add some other HTML to it. Here is the /My/UserBundle/Resources/views/Registration/register.html.twig file:</p>
<pre><code>{% extends "MyUserBundle::layout.html.twig" %}
{% block fos_user_content %}
<section class="reg... | 0 | 2,031 |
BadPaddingException: Given final block not properly padded | <p>I have a private key file encripted with DES/ECB/PKCS5Padding (56 bit DES key generated by a secret phrase) and I want to decrypt it.
I don't know why, but everytime I try to decript, the method doFinal of my cipher class is throwing this error:</p>
<blockquote>
<p>javax.crypto.BadPaddingException: Given final bl... | 0 | 1,053 |
Symfony 3 Redirect All Routes To Current Locale Version | <p>I am working on a symfony application where my goal is no matter what page the user is on it will navigate to the locale version of the page.</p>
<p>For example, if the user navigates to "/" the home page, it will redirect to "/en/"</p>
<p><strong>If they are on "/admin" page it will redirect to "/en/admin"</stron... | 0 | 2,895 |
How to fix java RuntimeException: Can't find resource 'solrconfig.xml' in classpath? | <p>I'm having issues setting up Solr as Tomcat service in CentOS. I’m using solr 3.3.0 which should be working with Tomcat 5.5 installed from cPanel. The error I was getting is: </p>
<blockquote>
<p>Can't find resource 'solrconfig.xml' in classpath or '/home/sampleuser/public_html/apache-solr/example/solr/./conf/', ... | 0 | 3,683 |
warning facesmessage(s) have been enqueued but may not have been displayed | <p>i have a form with inputs validation as follows:</p>
<pre><code><h:form id="insurance-form" rendered = "#{(param['insSaved']=='editable')}">
<div id="insurance-info">
<ul id="form-labels" style="text-align:left;">
<li>Insurance Company&nbsp;</li>
... | 0 | 1,606 |
Get JSONArray without array name? | <p>I'm new to JSON and trying this tutorial:
<a href="http://p-xr.com/android-tutorial-how-to-parse-read-json-data-into-a-android-listview/#comments" rel="noreferrer">http://p-xr.com/android-tutorial-how-to-parse-read-json-data-into-a-android-listview/#comments</a></p>
<p>I'm new to JSON, C languages, Java and also An... | 0 | 2,425 |
Tomcat unable to read the schema document | <p>We are trying to add DWR for current project and the code that does this is as below:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:context="http://www.sprin... | 0 | 6,112 |
Test a controller with success() and error () | <p>I'm trying to work out the best way to unit test success and error callbacks in controllers. I am able to mock out service methods, as long as the controller only uses the default $q functions such as 'then' (see the example below). I'm having an issue when the controller responds to a 'success' or 'error' promise. ... | 0 | 1,894 |
Pyqt: Enforcing sizeHint() dimensions on two-widget app with layout manager | <p>I have two widgets residing one next to each other, <code>WidgetA</code> and <code>WidgetB</code>, on a <code>QDialog</code>, with a horizontal Layout Manager.<br>
I am trying to enforce the following size/resize policies:<br>
For <strong><code>WidgetA</code></strong>: </p>
<ul>
<li>Horizontally: Width should be 9... | 0 | 1,436 |
React: Stop click event propagation when using mixed React and DOM events | <p>We have a menu. If menu is open, We should be able to close it by clicking anywhere:</p>
<pre><code>class Menu extends Component {
componentWillMount() {
document.addEventListener("click", this.handleClickOutside);
}
componentWillUnmount() {
document.removeEventListener("click", th... | 0 | 1,112 |
data insert using input output stored procedure | <p>I am creating a web application using ASP.net C#. I have a booking form and I need to insert data into a table using a Stored Procedure. The table has several columns, out of which second column is a computed column. The Stored Procedure is set up to insert the data and fetch the value from the second column after i... | 0 | 1,142 |
How can I fix error npm run dev in laravel 6 | <p>I have an error with npm when install in Laravel 6 it's now working I don't know despite of i did all the steps in order </p>
<p><strong>this are my versions:</strong><br>
Laravel version 6<br>
npm 6.13.7<br>
Node 13.5.0 </p>
<p><strong>I did the commends in order</strong></p>
<pre><code>composer require larave... | 0 | 2,077 |
.Net Core behind NGINX returns 502 Bad Gateway after authentication by IdentityServer4 | <p>Having two applications <strong>auth</strong> and <strong>store</strong> and authenticating using IdentityServer4 and both are behind NGINX.</p>
<p>The store application successfully authenticates but after coming back from the auth application we get 502 Bad Gateway from NGINX.</p>
<p>Any idea what is going wrong... | 0 | 1,261 |
How do I make my React app to open in Chrome browser by default? | <p>I am using <strong>create-react-app</strong> tool to develop React apps. The problem is that when I run the application using "npm start" command, it will open in Firefox browser and <strong>I want it to open in Chrome browser by default.</strong> <br/><br/>
I found many answers providing same solution which is abou... | 0 | 2,161 |
What is return type of db.collection.find() in mongodb | <p>I am trying to read the output of find function from mongodb connection.</p>
<p>I want to store result of database to JSON/Array called result like :</p>
<pre><code>collection= db.collection('users');
result =collection.find().
</code></pre>
<p>Right now with this code in result i am getting some weird long json ... | 0 | 1,926 |
Make reverse diagonals white in heatmap | <p>I'm trying to do something as seen on the image is given below,
<img src="https://i.stack.imgur.com/fmMC6.png" alt="enter image description here"></p>
<p>Just setting reverse diagonals white color is left. I couldn't set them as white. The chart takes integer values and I don't know what integer value is correspond... | 0 | 1,411 |
An association from the table Y refers to an unmapped class: Y - C# NHibernate | <p>I'm getting the exception:</p>
<pre><code>"An association from the table order refers to an unmapped class: FrancosPoS.DBMapping.pastaCombo"
</code></pre>
<p>for this NHibernate mapping:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping assembly="FrancosPoS" namespace="FrancosPoS.D... | 0 | 2,368 |
Yarn, node-gyp rebuild compile error, node_modules/fsevents: Command failed | <p>I am using Yarn to handle the packages.</p>
<p><code>yarn install</code> shows the error regardless of the package that I use but the install looked like it successfully finished and files are set under <code>node-modules</code> directly.(Somehow <code>jquery-ui</code> did not appear under <code>node-modules</code>... | 0 | 6,442 |
Add Image to Button GUI Java | <p>Okay I have tried different ways but I can not get the button to change into an image. I know the file source is right because when I upload it as just an image it works fine. Here's my code:</p>
<pre><code>ImageIcon start = new ImageIcon("start.png");
button = new JButton (start);
add(button);
</code></pr... | 0 | 2,961 |
How can I change namespace prefix in this WSDL? | <p>I am trying to create a WSDL for a pre-existing web service. I have an existing client and and existing server, and I've captured the format both use using Wireshark. I am trying to write a new client that uses the same format. Therefore I am trying to match the format as closely as possible, be it correct or not. I... | 0 | 1,649 |
Wordpress Error while developing a plugin -"You do not have sufficient permissions to access this page." | <p>I have just started learning wordpress plugin development and got this error when I access the my plugin menu from admin.</p>
<p>Here is the code: importer.php</p>
<pre><code>//*************** Admin function ***************
function oscimp_admin() {
include('importer_admin.php');
}
function oscimp_admin_actio... | 0 | 1,165 |
OpenCV Python cv2.BackgroundSubtractor parameters | <h2>Summary</h2>
<p>It seems like changing the parametes of BackgroundSubtractorMOG doesn't affect the results of the algorithm.</p>
<p>I'm usign Python: 2.7.6 |Anaconda 2.1.0 (64-bit)<br>
OpenCV: '2.4.10'<br>
OS: Windows 7 x64</p>
<p>The default parameters for the algorithm are: </p>
<pre><code>history=200, nmixtu... | 0 | 1,064 |
Asp.Net change value of textbox in grid on selected Index changed | <p><img src="https://i.stack.imgur.com/NcJGd.png" alt="enter image description here"></p>
<p>I have this grid on which I am dynamically adding controls. Now I want to change the respective value of Cost Price and Sale Price on Products selected index changed event. The problem is I cannot get the specific row. Below t... | 0 | 6,632 |
How to show spinner in angular 6 | <p>I am new to angular and web development but able to design various web pages and got data from the server using HTTP client module.</p>
<p>While getting data from server I want to show progress spinner, but I am not able to do it. I have searched google but nothing made me to do it. Please help me to achieve this.<... | 0 | 1,146 |
Why jquery "change" event does not work in my example? | <p>When a <code>[name="tip"]</code> has the first value, display a specific element, otherwise it would display another element.</p>
<p>Both elements have the <code>display:none</code> property. When I load the page I check the select value and fadeIn the desired element automatically.</p>
<p>Everything works... | 0 | 1,367 |
RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks | <p>I get this in logs: </p>
<blockquote>
<p>RCTBridge required dispatch_sync to load RCTDevLoadingView. This may
lead to deadlocks</p>
</blockquote>
<p>This is leading to an issue where the rendered content in React leads to alignment issues. </p>
<p>(See attached screenshot 1) <a href="https://i.stack.imgur.com... | 0 | 1,239 |
Unable to add window -- token null is not valid; is your activity running? | <p>I want to show a custom popup menu when the user clicks on a floating icon</p>
<p>the floating icon create with service and i have no activity</p>
<p>this is my floating icon code</p>
<pre><code>public class copy_actions_service extends Service
{
ImageView copy_ImageView;
WindowManager windowManager;
Win... | 0 | 1,132 |
Merge two columns into one from the same table | <p>So, I'd like to merge two columns in one.
That's how my data looks like:</p>
<pre><code>> tbl_end
Sequence modifications no_Ks no_Ks_modif V1
AAAAGAAAVANQGKK [14] Acetyl (K)|[15] Acetyl (K) 2 2 [14]... | 0 | 1,216 |
Loader Lock Exception while playing audio using DirectX | <p>I am trying to play and audio file using DirectX dll.</p>
<pre><code> Audio.FromFile("Message 1.mp3").Play();
</code></pre>
<p>But a loader lock exception is detected as shown below:
I am not an expert in analyzing the stack trace. How to analyze and solve the loader lock problem ?</p>
<p><strong>LoaderLock was ... | 0 | 1,550 |
ReactJS component HTML5 video | <p>I am trying to have have video in my web page using HTML <code><video></code> tag using ReactJS and JSX. Right now nothing is playing even though my component has the path to the file</p>
<p>IntroVideo this.props:</p>
<pre><code>{
introVideo: "assets/media/Cherngloong_website_intro_Uz921bT.mp4",
muted: "... | 0 | 1,350 |
warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' | <p>so i was working with some new changes to my code and decided to do a clean and build and got all of this bologna...</p>
<p>I recently added a new PU and such to my persistence.xml based on a db just like my first one using netbeans ide and I wad doing some queries when I got an error and decided to do the clean an... | 0 | 1,268 |
dataTables - Can't get horizontal scroll & fixed column to do their job. Seems to render differently everywhere. What am I doing wrong? | <p>I have spent HOURS trying to figure this out. I need to make a table that is virtually identical to the one that is being displayed at this link:</p>
<p><a href="https://datatables.net/extensions/fixedcolumns/" rel="nofollow">https://datatables.net/extensions/fixedcolumns/</a></p>
<p>Where it scrolls both vertical... | 0 | 10,809 |
How to show stores with nearest long/lat values using search function - Laravel 5 eloquent | <p>Ideally I am looking for an Laravel 5 relevant answer. I am trying to make a store locator app. I am up to the point where I'm trying to match one pair of lat/long coordinates (calculated from an address that a user enters into search box) with the nearest (within 100km radius) coordinates/existing stores in my data... | 0 | 1,048 |
(Laravel) Get data from a table which an ID correspond with another table that link with that table | <p>I was playing around with my first Laravel project and my question above might be a little bit confusing but let me explain:- </p>
<p>I have 3 tables (actually I have more, but lets ignore it), I have <code>standards</code>, <code>stddetails</code> & <code>sections</code> as shown:- </p>
<p><a href="https://... | 0 | 1,648 |
No operations allowed after connection closed | <p>I'm getting this error from a Java application:</p>
<pre><code>com.mchange.v2.c3p0.impl.NewPooledConnection - [c3p0] Another
error has occurred [
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
No operations allowed after connection closed. ] which will not be
reported to listeners!
</... | 0 | 1,575 |
Location package example is not working for me Flutter | <p>I am new to flutter and trying to get current location lat and long from my mobile app, for that I am using location 1.4.1, and also found this example which I mentioned in the below link, I did how exactly how they mentioned step by step process but still its throwing errors.</p>
<p><a href="https://pub.dartlang.o... | 0 | 3,092 |
Styling button in javaFX using CSS | <p>I have a problem with styling button in javaFX using CSS.
I use Intellij Idea IDE.
I have CSS.css file : </p>
<pre><code>#Button {
-fx-padding: 8 15 15 15;
-fx-background-insets: 0,0 0 5 0, 0 0 6 0, 0 0 7 0;
-fx-background-radius: 8;
-fx-background-color:
linear-gradient(from 0% 93% to 0% 1... | 0 | 1,199 |
Setting up development environment for ASP.NET MVC | <p>I'm from PHP background. I used to use Apache, MySQL and PHP for web development.
I'm just starting asp.net mvc.</p>
<ol>
<li>I've Visual Studio 2008 Pro SP1 & .NET 3.5 SP1 already installed on my computer.</li>
<li>So, I installed <strong><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=532890... | 0 | 1,649 |
Cannot find module: internal/modules/cjs/loader.js:969 | <p>I wanted to run my app and I suddenly got this error. Why?</p>
<p>this is what my order looks like in which i work.</p>
<pre class="lang-none prettyprint-override"><code>./
├─ app.js
├─ .env
├─ .gitignore
├─ node modules/
│ └─ ...
├─ package.json
├─ package-lock.json
├─ models/
│ └─ advertiser/
│ └─ advertiser... | 0 | 2,107 |
Spring - Injection of autowired dependencies failed | <p><strong>The following error appears in the server :</strong> </p>
<p>SEVERE: Context initialization failed</p>
<pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productController': Injection of autowired dependencies failed; nested exception is org.springfra... | 0 | 3,246 |
crashlytics developer tools error when building android -gradle project | <p>I'm trying to build an android gradle project using eclipse, but i get this error when building the project using the command line:</p>
<pre><code> FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:crashlyticsCleanupResourcesRelease'.
> Crashlytics Developer Tools er... | 0 | 1,262 |
Laravel: Returning the namespaced owner of a polymorphic relation | <p>I can find a number of discussions regarding this but no clear solution. Here are two links, although I will cover everything in my own question here.</p>
<p><a href="https://github.com/laravel/framework/issues?q=morphClass%20is%3Aissue%20">Github Issues</a></p>
<p><a href="http://laravel.io/forum/10-23-2014-morph... | 0 | 1,383 |
Python Pip install Error: Unable to find vcvarsall.bat. Tried all solutions | <p>I tried to install Scrapy for Python 2.7.8 (anaconda 2.1.0) 32-bit using </p>
<pre><code>pip install scrapy
</code></pre>
<p>And I got this error </p>
<pre><code> error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
</code></pre>
<p>I have followed the solutions found in these stackover f... | 0 | 1,499 |
Show/Hide Multiple Divs Javascript | <p>Looking for a good JavaScript to help me hide/show multiple divs with a button click not an a href click so I can use it in blogger.
I've been looking for an answer for a while now and have been unable to find a good one that uses JavaScript and/or CSS. I am a bit of a novice so bear with me.
Following is my code th... | 0 | 1,309 |
How to do antilog in numpy? | <p>I am new to Python and data analysis, O am working on time series problem using ARIMA model. Suppose my data is </p>
<pre><code>Month,Value
1949-01,112
1949-02,118
1949-03,132
1949-04,129
1949-05,121
1949-06,135
1949-07,148
1949-08,148
1949-09,136
</code></pre>
<p>and on basis of above data I have to predict next ... | 0 | 3,421 |
recv: Connection reset by peer | <p>when I close my client connected to the server I get this error from the server and server shuts itself down. I know that client can terminate the connection gracefully but I am planning to send this out to some people and do not want my server to be shut just because they did not terminate gracefully. So what could... | 0 | 2,594 |
Multi Level Drop Down Menu Using Jquery | <p>I want to design a multilevel menu using jQuery.
I have already written some code .You can see the demo <a href="http://jsfiddle.net/24ZvL/" rel="nofollow">here</a> .
All this works fine. But I want to make multilevel drop down menus dynamically.</p>
<p><strong>Script</strong></p>
<pre><code>$('ul#menu > li').... | 0 | 1,102 |
build gradle fail with "no signature of method .... is applicable for argument types: (java.lang.String) values" | <p>I have 4 gradle build files: when I build in android studio I am constantly having the error: </p>
<blockquote>
<p>No signature of method:
org.gradle.model.ModelMap.getDefaultProguardFile() is applicable for
argument types: (java.lang.String) values: [proguard-android.txt]</p>
</blockquote>
<p><strong>file 1... | 0 | 4,649 |
XCTestCase: ld: symbol(s) not found for architecture x86_64 | <p>I'm just trying to make my 1st XCTestCase implementation, everything build fine, but when I'm executing the test case I face a "build failed":</p>
<pre><code> Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Node", referenced from:
objc-class-ref in Test01.o
ld: symbol(s) not found for architec... | 0 | 11,255 |
Drawing a custom circle segment dynamically | <p>My customer wants the following widget in the application:<br />
<img src="https://i.stack.imgur.com/SQnWp.png" alt="enter image description here" />
<br />The <code>Text</code> comes from the server. The gradient angle depends on variables which also comes from the server. Also, customer wants the gradient to be fi... | 0 | 1,024 |
Jetpack Compose: How to put a LazyVerticalGrid inside a scrollable Column? | <p>When trying to put a <code>LazyVerticalGrid</code> inside a <strong>scrollable</strong> <code>Column</code> I get the following error:</p>
<blockquote>
<p>java.lang.IllegalStateException: Nesting scrollable in the same
direction layouts like LazyColumn and
Column(Modifier.verticalScroll()) is not allowed. If you wan... | 0 | 1,169 |
An element access expression should take an argument | <p>I am new to Angular I have tried to create some sample application but getting error. Please help. I am trying to make my own from googles project (<a href="https://stackblitz.com/angular/ooqemvjyqkb?file=src%2Fapp%2Fheroes%2Fheroes.component.ts" rel="noreferrer">https://stackblitz.com/angular/ooqemvjyqkb?file=src%2... | 0 | 1,168 |
Expected Identifiers in Xcode? I need need help! | <p>im using 3.2.6 iOS 4.3 to begins with. now the question i have is its telling me I have an (located on the "(@Implementation window, hvController;"):</p>
<p>Expected Identifier or '(' before '@' token</p>
<p>in the Delegate.m class</p>
<pre><code>//HelloUniverseAppDelegate.M
(@Implementation window, hvController;... | 0 | 1,316 |
Using XSSF to write xlsx using Apache POI | <p>Can someone give me an example of using <code>XSSF</code> to write <code>xlsx</code> files please?</p>
<p><strong>Edit:</strong> aha...I did it myself the jars you'd need are-</p>
<p>dom4j
poi-3.8.jar
poi-ooxml-3.8.jar
poi-ooxml-schemas-3.8.jar
xbean.jar</p>
<p>Sample code -</p>
<pre><code>package com.angrydog.i... | 0 | 1,451 |
No resource found that matches the given name: attr 'accentColor' | <p>I have seen a number of SO questions about this error, but all of them had a common problem, which is that they were trying to use v21 attributes on older versions or they had a lower <code>targetSDKVersion</code>, but that is not the case in my app.</p>
<p><strong><em>Note:</strong> I deleted the already present f... | 0 | 2,924 |
Receiving NPM err: Unexpected string in JSON at position 20938 within an ionic 3 project | <p>Not sure where the error is. (* is where private project information is held, i.e. Facebook app id and the app name) I have been receiving this error for a while now and I can't figure it out, is there something I'm missing? </p>
<pre><code>{
"name": "****",
"version": "0.0.1",
"author": "Ionic Framewo... | 0 | 1,603 |
JavaFx - How to display SimpleStringProperty value in TableView | <p>I am busy working through a tutorial and am stuck on one point.</p>
<p>Basically launch new scene and display values from ObservableList of type Person in a table view.</p>
<p>The person class consists of 3 SimpleStringProperty’s firsName, lastName and email.</p>
<p>But when I run the app it seems to display the ... | 0 | 1,594 |
Node.js EventEmitter: How to bind a class context to the event listener and then remove this listener | <p>Is there a way to access to the class context in the event listener method with possibility to remove the listener?</p>
<p><strong>Example 1:</strong></p>
<pre><code>import {EventEmitter} from "events";
export default class EventsExample1 {
private emitter: EventEmitter;
constructor(private text: string)... | 0 | 1,169 |
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [MyXYZ.class] | <p>I am implementing a RESTful web application with Jersey+Spring+Mongo+Solr.</p>
<p>After adding the solr dependency, the application is not working on production environment. However, It's works when I run it with in Eclipse (by using Run As >> Run on server).</p>
<p>Below is the pom.xml</p>
<pre><code><depende... | 0 | 8,649 |
using electric fence in a c++ program | <p>I've been experimenting with Electric Fence lately and I can't figure out how to use it with c++ code.</p>
<p>Here's an example:</p>
<pre><code>// test.cpp
#include <cstdlib> ... | 0 | 2,475 |
Android and maven: problem with maven dependencies in apk | <p>I'm currently working on an Android project using Maven as the build tool. However I'm having a problem with including dependencies, to be more specific: none of the dependencies listed in my pom file are packed in the apk. This results in <code>ClassDefNotFound</code> errors when I'm trying to run the app on my emu... | 0 | 3,265 |
Circular reference detected while serializing an object - C#, Json | <p>I'm trying to serialise an object to return it in Json format in order to create a graph. I am doing this in a class library and returning the string as part of a bigger report. I am getting an error however that says:</p>
<p><code>A circular reference was detected while serializing an object of type 'MyApp.Data.Sh... | 0 | 4,596 |
How do I read a Google Drive Spreadsheet in PHP? | <p>All I'm trying to do is read a Google Spreadsheet from a web site. I've read and re-read the Google Drive API docs and everything Google Drive PHP on Stack Overflow and I still can't get to the end zone.</p>
<p>Here's what I've done :</p>
<ol>
<li>Been to the Google APIs Console and :
<ol>
<li>Enabled "Drive API" ... | 0 | 1,050 |
Dynamic height of listview builder item | <p>I am unable to set the dynamic size to my list item of list view builder, every time it shows blank screen and when I specify a constant size it works.</p>
<p>I tried by using column by setting <code>mainAxisSize=minimum</code> and by using container as we know container wraps the child height but nothing works</p>... | 0 | 1,168 |
WCF service host cannot find any service metadata | <p>I've almost migrated service in ASMX in vb to new WCF 4.0 based, but I can't run it because I get an message at start:</p>
<pre><code>WCF Service Host cannot find any service metadata. This may cause the client application to run improperly. Please check if metadate is enabled. Do you want to exit?
</code></pre>
<... | 0 | 3,201 |
How can I use PCRE to get all match groups? | <p>I am inexperienced with using C, and I need to use PCRE to get matches.<br />
Here is a sample of my source code:</p>
<pre><code>int test2()
{
const char *error;
int erroffset;
pcre *re;
int rc;
int i;
int ovector[OVECCOUNT];
char *regex = "From:([^@]+)@([^\r]+)";
char str[]... | 0 | 1,136 |
Apache poi file getting corrupted and unable to write to existing workbook | <p>I am trying to write to read and write to a workbook using the following code: </p>
<pre><code>public static void main(String args[]) {
String absoluteFilePath = System.getProperty("user.dir") + File.separator + "abc.xlsx";
System.out.println("Readin file : " + absoluteFilePath);
Workbook workbook = nu... | 0 | 1,189 |
Perform a mouse Click event on another Application using C# | <p>what i need to do is that I need to control another application installed on the same machine using my custom application. For example if i needed to use the standard windows calculator I would simply send the input events to the calculator. I have used some code snippets to make this possible and I have now trigger... | 0 | 1,849 |
Estimating beacon proximity/distance based on RSSI - Bluetooth LE | <p>I've got a simple iOS app which displays the proximity of the Bluetooth LE beacons it detects using such expressions as "immediate", "near" etc. and I need to write something similar on Android.</p>
<p>I've followed the tutorial at <a href="https://developer.android.com/guide/topics/connectivity/bluetooth-le.html" ... | 0 | 1,228 |
Make mock gin.Context in Golang | <p>I'm writing a REST API using Gin framework. But I was faced a trouble testing my controllers and researching TDD and Mock. I tried to apply TDD and Mock to my code but I could not.</p>
<p>I created a very reduced test environment and tried to create a controller test. How do I create a Mock for Gin.Context?</p>
<p... | 0 | 1,215 |
Azure WebApp Cors does not add Cors headers | <p>I have an Owin WebAPI2 .NET app that I host on an AppService in Azure.</p>
<p>I want to add CORS support using Azure as <a href="https://docs.microsoft.com/en-us/azure/app-service-api/app-service-api-cors-consume-javascript" rel="nofollow noreferrer">in this article</a>. It seems simple, you just add an Origin site... | 0 | 1,043 |
Mobile Redirect using htaccess | <p>I have a website called</p>
<p><code>www.website.org</code></p>
<p>I have a mobile website called</p>
<p><code>m.website.org</code></p>
<p>I want to use an htaccess to automatically redirect the main website URL to the mobile version..</p>
<p>However, there is a link on the mobile version that points back to th... | 0 | 1,588 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.