title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to prevent 'query timeout expired'? (SQLNCLI11 error '80040e31') | <p>I have a connection to a MS SQL Server 2012 database in classic ASP (VBScript). This is my connection string:</p>
<pre class="lang-none prettyprint-override"><code>Provider=SQL Server Native Client 11.0;Server=localhost;
Database=databank;Uid=myuser;Pwd=mypassword;
</code></pre>
<p>When I execute this SQL command:... | 0 | 2,533 |
JMS queue not found in JNDI lookup when it's there | <p>I have created a sample setup to test JMS message queues. The setup is as follows:</p>
<p>Wildfly 8.1.0.Final server with switchyard projects (I'll have a switchyard assignment soon). I added a JMS queue to the server using the following code snippet:</p>
<pre><code>if (outcome != success) of /subsystem=messaging/... | 0 | 2,504 |
How to display a dataframe in tkinter | <p>I am new to Python and even newer to tkinter. </p>
<p>I've utilised code from stackoverflow (<a href="https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter">Switch between two frames in tkinter</a>) to produce a program where new frames are called and placed on top of each other dependin... | 0 | 1,561 |
Splitting up text with BeautifulSoup by certain HTML structures | <p>I am attempting to split up some HTML based on a certain pattern.</p>
<p>A specific part of the HTML has to be divided into 1 or more parts or text arrays. The way that I am able to divide this HTML is by looking at the first <code><strong></code> and a double <code><br /></code>. All the text that is b... | 0 | 1,082 |
Bootstrap navbar x-scroll | <p>I am trying to change the behaviour of the Bootstrap navbar to inherit a horizontal scroll instead of collapsing, it works on mobile but I want it to be the same across all devices... using SASS:</p>
<pre><code>.navbar-nav {
li {
display: inline-block; // stops menu items from stacking
}
}
.scroll {
white... | 0 | 1,046 |
Android Phone number format (XXX)-XXX-XXXX | <p>I want to type phone number in <code>EditText</code> in format <code>(XXX)-XXX-XXXX</code>. But I am not getting any solution for this. I succeeded to type but when I use backspace and again type number then this format not comes.Please give me solution. My code is </p>
<pre><code>phoneEditText.addTextChangedListen... | 0 | 1,641 |
getting error trying to create log4j2 rollingfileappender | <p>I'm trying to switch from using FileAppender to the RollingFileAppender using log4j2 (happens both with beta3 and beta4 jars).</p>
<p>I have it configured as:</p>
<pre><code><RollingFile name="RollingFile" fileName="${logdir}/${filename}"
filePattern="${logdir}/app-%d{yyyy-MM-dd-hh-mm-ss}_%i.log" >
... | 0 | 1,244 |
Cannot create an instance of "[user control]" error in designer | <p>I have created the following user control. When I add it to a xaml window, I get the error "Cannot create an instance of "ucAppItem". I dragged the user control onto the window from the toolbar.</p>
<p>XAML of user control is as follows:</p>
<pre><code><UserControl x:Class="Demos.ucAppItem"
xmlns... | 0 | 1,426 |
How to add Three Level ListView in ExpandableListView in android | <p>I want to add one more level of in ExpandableListView.In current ExpandableListView is two level how can i add one more level. I am new in android developing please help me. Thanks in advance! </p>
<p>My MainActivity.java:-</p>
<pre><code> private Toolbar mToolbar;
ExpandableListAdapter listAdapter;
ExpandableList... | 0 | 5,241 |
Django: DatabaseError column does not exist | <p>I'm having a problem with Django 1.2.4. </p>
<p>Here is a model:</p>
<pre><code>class Foo(models.Model):
# ...
ftw = models.CharField(blank=True)
bar = models.ForeignKey(Bar, blank=True)
</code></pre>
<p>Right after flushing the database, I use the shell:</p>
<pre><code>Python 2.6.6 (r266:84292, Sep ... | 0 | 1,150 |
Border styles in p:panelGrid | <p>I'm trying to apply a dotted border to PF 5.0 <a href="http://www.primefaces.org/showcase/ui/panel/panelGrid.xhtml" rel="nofollow noreferrer"><code><p:panelGrid></code></a> as follows.</p>
<pre><code><p:panelGrid styleClass="panelgrid-dotted-border">
<f:facet name="header">
<p:row&g... | 0 | 1,673 |
JTextField limiting character amount input and accepting numeric only | <p>here's the code that i have on how to limit the character input length</p>
<pre><code>class JTextFieldLimit extends PlainDocument {
private int limit;
// optional uppercase conversion
private boolean toUppercase = false;
JTextFieldLimit(int limit) {
super();
this.limit = limit;
}
JTextFieldLimi... | 0 | 1,454 |
Spark UnsupportedOperationException: empty collection | <p>Does anyone knows possible causes of this error while trying to execute spark mllib ALS using hands on lab provided by Databricks?</p>
<pre><code>14/11/20 23:33:38 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
14/11/20 23:33:39 WARN SizeEstimator: Failed to check whether UseCompressedOops is... | 0 | 3,440 |
woocommerce: How to install the Custom Payment Gateway | <p>I have created a class for new payment gateway. I just duplicated the existing payment class & changed the class name, file name and also incorporated the install code.</p>
<p>But I couldn't find the way to install a new payment gateway in admin panel.
Please advice.</p>
<p>Wordpress Ver: 3.5.1
Class:</p>
<pr... | 0 | 2,553 |
how to close jQuery tooltip | <p>I've been trying to make very simple javascript tooltip with jQuery but I've hit a brick wall. The idea is to have little inline element (<code>span</code>) inside a <code>div</code>. The <code>span</code> element will contain a tooltip <code>div</code> with a little html (image and link). Tooltip should be opened w... | 0 | 1,317 |
Compiling and Using JSONCPP on Visual Studio10 with Boost | <p>I have recently compiled the SVN version of JSONCPP using the VS71 makefiles. It worked, but I get a lot of linker errors</p>
<pre>
1>msvcprt.lib(MSVCP100.dll) : error LNK2005: "public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (?sputn@... | 0 | 8,539 |
WCF Error "Found multiple X.509 certificates using search criteria" | <p>I receive following error when I try accessing a WCF service hosted on our staging server.</p>
<p><em>"Found multiple X.509 certificates using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue 'StagingServer001'. Provide a more specific find value."... | 0 | 1,118 |
Using webpack aliases in mocha tests | <p>I'm developing a web app at work in React/Redux/Webpack and am now starting to integrate testing with Mocha.</p>
<p>I followed <a href="http://rackt.org/redux/docs/recipes/WritingTests.html" rel="noreferrer">the instructions for writing tests in the Redux documentation</a>, but now I have run into an issue with my ... | 0 | 1,030 |
Forwarding UIGesture to views behind | <p>I am working on an iphone (iOS 4.0 or later) app and having some troubles with touch handling between multiple views. I am having a view structure like this</p>
<pre><code>---> A superView
|
---> SubView - A
|
---> SubView - B (exactly on top of A, completely blocking A).
</code></pre... | 0 | 1,177 |
How to prevent a macro from freezing / turning white the Excel window? | <p>So at work I am working on a macro/UserForm in Excel for someone. It works great (I think) and does exactly what it needs to do and takes under 1 minute to run, going through ~70k cells and organizing them. Now I was wondering if there was a way to slow it down so that Excel does not go into "Not Responding" mode wh... | 0 | 1,049 |
@MAPSTRUCT. No property named "packaging" exists in source parameter(s) | <p>I am writing an <code>MVC</code> <code>REST</code> application with <code>Spring Boot</code> and <code>Hibernate</code>. I decided to do <code>DTO</code> mapping using <code>MAPSTRUCT</code>. It seems that I did everything according to the guide, but an error is issued. What is the problem, I cannot understand. Ther... | 0 | 2,455 |
Find conditions with hasMany model | <p>I have 4 model:</p>
<p>Item------hasMany---->Detail</p>
<p>Item------hasMany---->Favourite</p>
<p>Item------hasMany---->Category</p>
<p>How can I find all Item that has Favourite.member_id = '8' and Category.item_category_id = '1'</p>
<p>Here is my Item model relation:</p>
<pre><code>public $hasMany = array( ... | 0 | 1,154 |
Spring-Cloud configuration server ignores configuration properties file | <p>I am trying to create a Spring Cloud configuration server which reads the configuration data from the properties file and not a github. The server starts, but does not serve the properties from the file. I have two configuration files on the classpapath: </p>
<p>bootstrap.yml</p>
<pre><code>spring:
application:
... | 0 | 1,083 |
How do I display a list of items from a Bean onto a JSF webpage? | <p>I'm new to JSF and in the process of learning im building an online book store application. </p>
<p>I have 1 class and 1 bean: <code>Book.java</code> and <code>BookCatelogBean.java</code>. The Book class has 3 properties: <code>id</code>, <code>title</code>, and <code>author</code> with it's corresponding getters a... | 0 | 1,394 |
React Navigation - pop() go's back to root rather than previous page | <p>I am trying to add a back buttons into a bespoke sidemenu component.</p>
<p>Here is my navigation.js setup:</p>
<pre><code>import { createAppContainer, createStackNavigator, createDrawerNavigator } from 'react-navigation';
import App from '../components/App';
import HomeView from '../components/HomeView';
import C... | 0 | 4,785 |
Add css class to parent of radio button when checked using jquery | <p>I'm trying to add a css class to the div.from of my radio button if it is checked. Then remove if it is not checked.</p>
<p><strong>And the html:</strong></p>
<pre><code><div style="width:49.5%;height:auto;float:left;" class="from">
<label>
<div class="fromm" id="order">
<div class="fra... | 0 | 1,184 |
Angularjs $http.post() call to api throwing 405 error on pre-flight OPTIONS call | <p>I'm trying to make a POST to an api, but I'm getting a 'NetworkError 405 - Method Not Allowed' on what I've come to learn is a pre-flight OPTIONS call to the service. Researching the issue comes up with answers that aren't quite what I'm looking for. I had an initial problem with CORS, to which I added the following... | 0 | 2,282 |
Optimizing Volley | <p>I am using Volley library in android.I run the same url in the browser and it returns in less than a second.I would like to know , how can optimize Volley?
Not clear on what is the Cache Queue Take represents and why it is 3.6 seconds. or why cache queue take and network complete are added for a response time that ... | 0 | 1,280 |
Python - AWS Lambda extract a key from JSON input | <p>Im trying to implement a function that will get the event from cloudwatch and print the results. I am able to get the event but I want to extract one particular key from that JSON. </p>
<h2>Here is my function:</h2>
<pre><code>import json
def lambda_handler(event, context):
print("Received event: " + j... | 0 | 1,716 |
Elastic Beanstalk npm failing | <p>I am trying to upload my app to Elastic Beanstalk but the npm install is failing on node-pre-gyp install --fallback-to-build. I have tried various versions of node with no avail. It seems to be trying to get a package for linux which doesn't exist and is not needed, it is only needed for OSX (in which it is working ... | 0 | 1,026 |
How to navigate from one screen to another scree in react native>? | <p><strong>Explanation:</strong> I have working with react native in android.I started with the login screen and pass the parameter to another screen using API success call.i used a StackNavigation to navigate the screen. After successful login it will move to another screen with parameter.</p>
<p><strong>Issue:</stro... | 0 | 3,136 |
how to modify xml tag specific value in java? | <p>i am new to work on xml.i have used an xml file as follows:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
- <root>
- <key>
<Question>Is the color of the car</Question>
<Ans>black?</Ans>
</key>
- <key>
... | 0 | 1,264 |
Soap call gives 500 (internal server error) in c# | <p>I have one affiliate account and I need to make a <code>soap</code> call to get data. I got ready code from one site and I tried to apply it, but I'm getting <code>500(internal server error)</code>. My code is given below.</p>
<pre><code>public void getdata()
{
var _url = "http://secure.directtrack.com/api/soap... | 0 | 1,036 |
c# Properties.Settings.Default Doesn't work as expected | <p>I've been working on a program to automate my backup checks with LogMeIn backup (a windows forms based program). I now need a way to store user settings, to save information easily. I've never worked with the Application/User settings that is somewhat "built-in" - and decided to try it, but ran into problems. </p>
... | 0 | 1,492 |
How to add event for Checkbox click in Asp.net Gridview Column | <p>I have a gridview in asp where i have added first column as checkbox column.Now i want to select this column and get the id values of the row ..But I am not getting how to do it..</p>
<p>This is my Aspx code..</p>
<pre><code><asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound"
... | 0 | 2,082 |
Using Flask-SQLAlchemy in Blueprint models without reference to the app | <p>I'm trying to create a "modular application" in Flask using Blueprints.</p>
<p>When creating models, however, I'm running into the problem of having to reference the app in order to get the <code>db</code>-object provided by Flask-SQLAlchemy. I'd like to be able to use some blueprints with more than one ap... | 0 | 1,386 |
How to Animate Path in SwiftUI | <p>Being unfamiliar with SwiftUI and the fact that there is not much documentation on this new framework yet. I was wondering if anyone was familiar with how it would be possible to animate a <code>Path</code> in SwiftUI.</p>
<p>For example given a view, lets say this simple <code>RingView</code>: </p>
<pre class="la... | 0 | 1,065 |
Java - Set width/height of JLabel | <p>I am adding an image into a JLabel and trying to set the width and height... but it's not working... help?</p>
<p>as you can see here... the tiles are not 32 by 32...</p>
<p><a href="https://i.stack.imgur.com/m3H5S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m3H5S.png" alt="alt text"></a>
</... | 0 | 4,991 |
Pushing Item to Json Array angularjs | <p>I am new to angularjs. I am currently doing a mobile app with ionic (that's why I have to use angularjs). I have an array and I created a add form with a button so that I can add item in the array. I have created some dummy data first because I want to test it around. I am not sure how to implement an add button so ... | 0 | 2,482 |
FOS/UserBundle: Unrecognized field: usernameCanonical | <p>I'm very new to Symfony 2.0 and FOS/UserBundle. I'm install it to my project and when I trying to login or register new user I get following errors:</p>
<blockquote>
<p>Unrecognized field: usernameCanonical</p>
</blockquote>
<p>I haven't no idea what does it mean? I'm put my codes:</p>
<p>app/config/security.ym... | 0 | 2,463 |
WPF MultiBinding in Convertor fails ==> DependencyProperty.UnsetValue | <p>My code fails at at startup because the values array in the <code>Converter</code> that is called by the <code>Multibinding</code> is <strong>not filled with proper value but have a value of</strong> <code>DependencyProperty.UnsetValue</code>.</p>
<p>have a look at Convertor and also see where i getting error</p>
... | 0 | 3,301 |
How to fix 'Object arrays cannot be loaded when allow_pickle=False' for imdb.load_data() function? | <p>I'm trying to implement the binary classification example using the IMDb dataset in <strong>Google Colab</strong>. I have implemented this model before. But when I tried to do it again after a few days, it returned a <code>value error: 'Object arrays cannot be loaded when allow_pickle=False'</code> for the load_data... | 0 | 1,136 |
NodeJS Generate Valid PEM keys for Signing and Verifying messages | <h2>Context</h2>
<p>From the NodeJS documentation on TLS/SSL for Node v10.9.0 (2018-AUG)</p>
<p><a href="https://nodejs.org/api/tls.html#tls_tls_ssl_concepts" rel="noreferrer">https://nodejs.org/api/tls.html#tls_tls_ssl_concepts</a></p>
<pre><code>openssl genrsa -out ryans-key.pem 2048
</code></pre>
<p>Will produce... | 0 | 1,217 |
How to integrate azure ad into a react web app that consumes a REST API in azure too | <p>I have one web app which is React, and I already configured Azure AD Authentication for the web app itself. Its 100% Client site app, no server side components.</p>
<p>I used this component:
<a href="https://github.com/salvoravida/react-adal" rel="noreferrer">https://github.com/salvoravida/react-adal</a></p>
<p>M... | 0 | 1,509 |
Java DB: No Suitable Driver Found | <p>Good day!</p>
<p>I know there has been lots of posts for this kind of question, but I've looked at some of them and could not find the answer for my problem since I am using an Embedded Derby.</p>
<p>I am getting this error:</p>
<pre><code>##THIS IS GENERATED BY THE METHOD printSQLException shown at the code belo... | 0 | 1,825 |
"React.createContext is not a function" - but I am not using it | <p>I am getting "React.createContext is not a function" error while running a react-native application. I searched for 'createContent' in the code, it doesn't exist.</p>
<p>Any idea what may be the reason for the error.</p>
<p>It is an iOS build of an app that is already running on android.</p>
<p>Here is my package... | 0 | 2,093 |
Android: android.database.Cursor.moveToFirst()' on a null object reference | <p>I'm working about photo application and i want to implement cirlcle cropper in my project, but i have a problem about my fragment and cropper class. When i'm selected picture and press crop button and after turning fragment i'm giving this error:</p>
<pre><code>06-04 02:09:34.595 21914-21914/com.stamplessapp E/Andr... | 0 | 5,585 |
TypeError: Required argument 'mat' (pos 2) not found | <p>I have the code below with cv2 . This code is downloaded from <a href="https://github.com/dipakkr/3d-cnn-action-recognition" rel="noreferrer">https://github.com/dipakkr/3d-cnn-action-recognition</a>. I want to use cv2.imshow to visualize the frames of the video it get. But I get the following error. What is the prob... | 0 | 1,037 |
React - how to pass state to another component | <p>I'm trying to figure out how to notify another component about a state change. Let's say I have 3 components - App.jsx,Header.jsx,and SidebarPush.jsx and all I'm simply trying to do is toggle a class with an onClick.</p>
<p>So the Header.jsx file will have 2 buttons when clicked will toggle the states to true or fa... | 0 | 1,780 |
Angular4 ASP.NET Core 1.2 Windows Authentication CORS for PUT and POST Gives 401 | <p>My IDE is Visual Studio 2017. I've got an Angular4 client talking to a WebAPI backend in Core, and CORS is working as configured EXCEPT for the PUT and POST methods. The GET method is subject to the same preflight OPTIONS method in Chrome that the PUT and POST methods are, but GET is working fine.</p>
<p>It appear... | 0 | 1,716 |
Why do I get “Reducer [...] returned undefined during initialization” despite providing initialState to createStore()? | <p>I had set InitialState in my redux createStore method ,and I corresponding InitialState as second arguments </p>
<p>I got a error in browser:</p>
<pre><code><code>Uncaught Error: Reducer "postsBySubreddit" returned undefined during initialization. If the state passed to the reducer is undefined, you must exp... | 0 | 1,139 |
Twitter Bootstrap 3 - Panels of Equal Height in a Fluid Row | <p>I am new to Bootstrap 3 and I would like to have 3 panels on my landing page of equal height, even though the middle panel has less content. When resized they become the same height, but are not upon initial visit to the page. </p>
<p>I already tried hiding the overflow with CSS and it cuts off the bottom of the pa... | 0 | 2,256 |
how to display user name in login name control | <p>I have a master page that holds the loginview content that appears on all subsequent pages based on the master page. i have a username control also nested in the loginview to display the name of the user when they are logged in. the code for the loginview from the master page is displayed as follows:</p>
<pre><code... | 0 | 3,638 |
codeigniter displaying form_open | <p>I am trying to learn codeigniter and for some reason I can't do the simplest of things.</p>
<p>Basically I am creating a form on a login page. But I am getting</p>
<blockquote>
<p>Fatal error: Call to undefined function validation_errors() in A:\work\codeigniter\ci\application\views\pages\login.php on line 5</p>
</b... | 0 | 1,469 |
Windows Phone 8 App Dynamically/programmatically create buttons in g grid/Panel | <p>I have a problem in creating buttons dynamically in windows phone 8 app.</p>
<p>I can create these buttons in my Xaml file But not programmatically...
here is the snapshot of that file....</p>
<p><a href="http://www.4shared.com/photo/Hu1FVCdn/wp8.html" rel="nofollow">http://www.4shared.com/photo/Hu1FVCdn/wp8.html<... | 0 | 1,755 |
Output PDF file using header | <p>I can output a PHP table in an excel file using this code:</p>
<pre><code><?php
require("aacfs.php");
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=Cancelled Flight Summary_sortbydate.xls");
header("Pragma: no-cache");
header("Expires: 0");
echo "<cent... | 0 | 2,156 |
Permission denied for Git Clone when I do npm install | <p>I have git dependencies in my package.json file.
When I do <strong>sudo npm install</strong> in my react app folder, I get this error</p>
<pre><code> npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master
https://github.com/lrojas94/react-file-base64.git /home/admin1/.npm/_c... | 0 | 1,811 |
Why do my checkboxes not pass their value to my controller in ASP.NET Core? | <p>I feel this may be an easy fix but I cannot seem to get around it. I have an ASP.NET Core web application and I'm using an ajax form to submit data to my controller for processing. The problem I have is that my checkboxes always pass in as "false" even though they may be checked.</p>
<p>I searched for some answer... | 0 | 1,296 |
Unable to save (A new entity was found through the relationship) | <p>Error Message: </p>
<blockquote>
<p>"A new entity was found through the relationship
'AppBundle\Entity\Category#products' that was not configured to
cascade persist operations for entity:
AppBundle\Entity\Product@00000000133d712400000000104ed306. To solve
this issue: Either explicitly call EntityManager#p... | 0 | 2,193 |
How are Servlet url mappings in web.xml used? | <p>I have a web.xml file with content:</p>
<pre class="lang-xml prettyprint-override"><code><servlet>
<servlet-name>servlet1</servlet-name>
<servlet-class>org.mycompany.test1</servlet-class>
</servlet>
<servlet>
<servlet-name>servlet2</servlet-name>
... | 0 | 1,218 |
PrimeNG datatable checkbox selection with pagination | <p>I'm trying to bring a data table layout with pagination that has checkbox selection for data in it. I'm able to select a page's data and when I move to another page, and select different set of data, the first page selection is lost. </p>
<p>demo.html:
</p>
<pre><code> <p-dataTable [value]="cars" [rows]=... | 0 | 1,485 |
Maven Build Failure - Compiler Plugin | <p>I am trying to build a project in Maven and am experiencing the following error:</p>
<pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project webgoat-container: Fatal error compiling: java.lang.ExceptionInInitializerError: Unable to make fiel... | 0 | 7,317 |
Gyroscope Issues with Device Orientation | <p>I'm getting pitch and roll data from my device's gyroscope using this tutorial: <a href="http://www.thousand-thoughts.com/2012/03/android-sensor-fusion-tutorial/">http://www.thousand-thoughts.com/2012/03/android-sensor-fusion-tutorial/</a></p>
<p>All the readings are extremely accurate (there's a filter applied to ... | 0 | 6,389 |
Multithreading, Read multiple files and write to new Files | <pre><code>import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.concurrent.ExecutorS... | 0 | 2,429 |
How to use jquery Datepicker in web control in asp.net? | <p>i am creating a web-control and i want to use jquery date-picker on this control, i have tried the below things:
1). apply all the required jquery code in web-control(<strong>but it does not work for me.</strong>)
2). apply all the required jquery code in page where i am calling that web-control(<strong>but it does ... | 0 | 1,253 |
GET request in RestTemplate in JSON | <p>It's been troubling for a couple days already for a seemingly super straightforward question:</p>
<p>I'm making a simple GET request using RestTemplate in <code>application/json</code>, but I keep getting</p>
<pre><code>org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframe... | 0 | 1,269 |
Uncaught TypeError: Cannot read property 'addEventListener' of null error for image upload | <p>Hi friends i am getting this error in following code:</p>
<p><code>Uncaught TypeError: Cannot read property 'addEventListener' of null</code> on line 11</p>
<p>The line 11 is:</p>
<pre><code>fileDiv.addEventListener("click",function(e){
$(fileInput).show().focus().click().hide();
e.preventDefault();
},false... | 0 | 1,132 |
Jboss not starting - without error | <p>I'm trying to install a fresh version of Jboss, so I Downloaded it, unzip it, and tried to launch the standalone.bat</p>
<p>I checked for my system environment variables, and all of them are correct.</p>
<pre><code>Calling "G:\Download\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\standalone.co
nf.bat"
===========... | 0 | 1,471 |
How can I set the size of logos the same via CSS? | <p>The images are all of the same sizes.
I use Image GIF and the size of the images on the hard disk is 415x72.</p>
<p>The images are placed in a table I want to make all images the same via css.</p>
<p>Images details on the hard disk:
<a href="https://i.stack.imgur.com/WtxEu.png" rel="nofollow noreferrer"><img src="ht... | 0 | 1,408 |
plugin request for plugin already on the classpath must not include a version | <p>I've done web search for "plugin request for plugin already on the classpath must not include a version site:stackoverflow.com" and found nothing that particular. Search for "plugin request for plugin already on the classpath must not include a version" (w/out SO) found:
<a href="https://discuss.gradle.org/t/error-p... | 0 | 1,513 |
Calling function from another file declared in a header file | <p>I want to call a function that is in sin.c, and the main file is in test1.c </p>
<p>and the files look like this:</p>
<p>file test1.c:</p>
<pre><code> #include <stdio.h>
#include <stdlib.h>
#include "sin.h"
int main(){
float angle;
double sinValue;
printf("Please ... | 0 | 1,045 |
inputStream.read() causes NullPointerException (after having checked inputStream!=null) | <p>I am writing an application that needs to exchange data with a Bluetooth 2.1 device.
I have done it several times but this time something weird is happening.</p>
<pre><code> Log.d("TAG", "connectToDevice");
if(macAddress != null)
deviceToConnect = mBluetoothAdapter.getRemoteDevice(macAddress);
... | 0 | 1,069 |
How to declare table in function in SQL Server 2005 | <p>I need to create a function do to certain processing on data to be returned to a SQL view.</p>
<p>I have designed the function as below, but am getting error saying</p>
<blockquote>
<p>Must declare the table variable
"@FINALRESULTS"</p>
</blockquote>
<p>although I have defined it as table.</p>
<p>Can you ple... | 0 | 1,795 |
Everytime I run gulp anything, I get a assertion error. - Task function must be specified | <p>I'm trying to run the command below but unfortunately I run into errors. </p>
<pre><code>$ gulp build
</code></pre>
<p>In my terminal and I get this assertion error. I've uninstalled <strong>node</strong> and <strong>NPM</strong> and reinstalled again using brew - <a href="https://stackoverflow.com/questions/11177... | 0 | 4,259 |
How to set the background image of FabricJS canvas to image from a web service? | <p>I have following piece of code, which is executed when the user presses a button. It</p>
<ol>
<li>connects to a web service,</li>
<li>gets an image from it,</li>
<li>stores it in <code>myDataURL</code> variable and</li>
<li>displays it on the canvas.</li>
</ol>
<p>Here's the code:</p>
<pre><code>function download... | 0 | 1,580 |
Using GPU inside docker container - CUDA Version: N/A and torch.cuda.is_available returns False | <p>I'm trying to use GPU from inside my docker container. I'm using docker with version 19.03 on Ubuntu 18.04.</p>
<p>Outside the docker container if I run nvidia-smi I get the below output.</p>
<pre><code>+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.51.05 Driver V... | 0 | 1,777 |
Cannot resolve load path in webpack | <p>I try to migrate gulp+browserify to webpack and I have problems resolving path.</p>
<p>Here is my project tree :</p>
<pre><code>/path/to/project
├── webpack.config.js
└── www/static
├── build
│ ├── js
│ │ ├── main.js <-------│ Output wanted
│ │ └── main.js.map <---│
... | 0 | 1,073 |
Initializing a Graphics variable | <p>How do you initialize a Graphics variable?</p>
<p>I tried <code>Graphics g = new Graphics()</code> and <code>Graphics g;</code> but it says it cannot be instantiated. I need to pass <code>Graphics g</code> from one method to another so I can't just call it from the argument. Any help is appreciated.</p>
<p>This is... | 0 | 2,195 |
'Collection' object is not callable. If you meant to call the 'mapReduce' method on a 'Collection' object it is failing because no such method exists | <p>I'm using pyMongo 1.11 and MongoDB 1.8.2. I'm trying to do a fairly complex Map/Reduce. I prototyped the functions in Mongo and got it working, but when I tried transferring it to Python, I get:</p>
<pre><code>---------------------------------------------------------------------------
TypeError ... | 0 | 1,286 |
"NoSuchWindowException: no such window: window was already closed" while switching tabs using Selenium and WebDriver through Python3 | <p>I have a form that opens in a new tab when I click on it. When I try to navigate to that new tab, I keep getting a NoSuchWindowException. Code is pretty straightforward. 'myframe' is the frame within the new tab that the information will eventually get plugged into. Should I be waiting for something else?</p>
<pre>... | 0 | 1,051 |
Xamarin Forms MainActivity OnCreate LoadApplication System.NullReferenceException: Object reference not set to an instance of an object | <p>I am using VS2015 with Xamarin to create a multi-platform project that can show a splashscreen and then load a webpage in a webview. Here is my project structure. I am using a PCL project type as below:</p>
<p><a href="https://i.stack.imgur.com/op1Zw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/op1Zw.p... | 0 | 1,385 |
ORA-03146: Invalid buffer length for TTC field | <p>when I try to insert record to the table, I get the following error.
I do not have any problems when I perform update and select operations for the same table.</p>
<p>Nhibernate Proviler Insert Command :</p>
<pre><code>> INSERT INTO UserOneTimePassword
> (Id,
> Password,
> ... | 0 | 1,122 |
Find Duplicate entries C# | <p>I am new to programming so this may seem somewhat straightforward, but I cannot seem to figure it out.</p>
<p>I am trying to find duplicate values that are in a datatable in one column of the values. </p>
<p>Here is what I was trying to do it with.</p>
<pre><code>DataRow[] dupresults = dt.Select("PROV_NEW");
Tabl... | 0 | 1,335 |
o.s.web.servlet.PageNotFound - No mapping for GET /WEB-INF/views/welcome.jsp | <p><strong><em>Please write reasons before down vote or put on hold the question or something else...</em></strong></p>
<p>I have created simple spring-boot application but for some reason the view can't be mapped and I am getting the following error:</p>
<pre><code>o.s.web.servlet.PageNotFound - No mapping for GET /... | 0 | 2,028 |
CORS Fails when uploading a file | <p>Here I meet a little problem with my code.</p>
<h1><strong>What I do</strong></h1>
<p>I have a laravel application in backend (on port 8000) in which I created a CORS middleware that allows me to make cross origin requests from my front-end (on port 8080)</p>
<p><strong>Here is my Middleware Cors</strong></p>
<p... | 0 | 1,318 |
Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state | <p>When my page loads, I try to <code>send</code> a message to the server to initiate a connection, but it's not working. This script block is near the top of my file:</p>
<pre><code>var connection = new WrapperWS();
connection.ident();
// var autoIdent = window.addEventListener('load', connection.ident(), false);
</c... | 0 | 1,046 |
Google Play Services missing on Android 2.2 emulator while using Google Maps API v2 | <p>Hey I am trying to use Google Maps on my emulator even though I've installed Google Play Services library when I run the app it says </p>
<blockquote>
<p>This app won't run without Google Play Services which are missing from your phone</p>
</blockquote>
<p>on LogCat I get the warning about it but not really sure... | 0 | 1,888 |
Laravel - Get items from session array | <p>I'm making a step program and therefore I wanted to use sessions. I have a form which allows the user to fill in some information and then the input values will be put in a session array called "basic_settins" like this</p>
<pre><code>public function saveSettings(Request $request, Product $products)
{
$request-... | 0 | 1,500 |
JWT token error 401 Unauthorized in .net core 3.1 | <p>I am learning DDD and JWT so I thought about using both in my application.
The problem starts like this.
When I do a resquest with username and password, the api returns the token, but when I put it in the postman's header status 401.</p>
<p>I've tried to put http and https.</p>
<p>LoginController.cs</p>
<pre><co... | 0 | 4,364 |
Bootstrap table not working correctly on Chrome but works fine on Firefox | <p>I've made a table that's inside a modal using Twitter Bootstrap 3. The weird thing is that it works fine on Firefox and jsFiddle but not on Google Chrome.</p>
<pre><code><button class="btn btn-xs btn-default" data-toggle="modal" data-target="#competitor_modal">
Competitor
</button>
<div class="m... | 0 | 2,766 |
Legend in Multi line chart - d3 | <p>While adding a legend to my multi line graph my result is:
<img src="https://i.stack.imgur.com/7Tk8n.png" alt="enter image description here"> </p>
<p>The passed ,failed etc... are half visible.
code:</p>
<pre><code> var margin = {top: 20, right: 20, bottom: 30, left: 50},
width = 1090 - margin.left - margin.righ... | 0 | 1,131 |
specify different layouts for portrait and landscape orientations? | <p>I've specify two separate layout xml files for an activity, one for Portrait in res/layout folder and one for Landscape in res/layout-land folder. my actual problem is that when i launch application in portrait mode it takes ui from layout and instantly i rotate my phone it doesn't take xml from layout-land folder i... | 0 | 4,358 |
Error: No provider for HttpHandler in angular2 | <p>I am trying to implement HttpCache through interceptor. Following is the caching-interceptor.service.ts</p>
<pre><code>import { HttpRequest, HttpResponse, HttpInterceptor, HttpHandler, HttpEvent } from '@angular/common/http'
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
... | 0 | 1,343 |
Can width of a Gridview's column can be changed in percentage in codebehind? | <p>I have a <code>gridview</code> having 5 columns, and last column is visible to some members only.
I want that when the last column<code>gvMessageList.Columns[4]</code> is inivisible, its width in percentage should be given to first column<code>gvMessageList.Columns[0]</code>.</p>
<p>Please, let me know, how is it p... | 0 | 1,485 |
Disable automatic sorting on the first column when using jQuery DataTables | <p>I'm using jQuery DataTables and I would like to know if there's possible to disable automatic sorting on the first column of the table?</p>
<p>My code looks like this:</p>
<pre><code> /* Default class modification */
$.extend( $.fn.dataTableExt.oStdClasses, {
"sWrapper": "dataTables_wrap... | 0 | 3,613 |
how to make translation animation for each listview items | <p>i have a listview with override getView method to populate it.
now, i want to make each item of the list to animate or moving from the right side
of the screen to the left side where the item should normally appear.</p>
<p>the animation of each item should not start at the same time, it must delay for couple ms be... | 0 | 1,365 |
How to validate email id and password & confirm password in php | <p>i doing register form in php. i dont know how to validate my entered email and (password and confirm password) in php. For email if i enter same id "It should tell my email alread registered" and for password and confirmpassword should check whether it same or not. I have tried email in my coding. it throwing error ... | 0 | 1,581 |
Linkage against libQt5Core | <p>I installed Qt5.4 with the online installer (working on ubuntu 14). I'm trying to compile my c++ source and link against libQt5Core but ld throw an error:</p>
<pre><code>make
g++ -Wall test.o Party.o Communication.o FileParser.o PeerConnection.o ServerModule.o Utilities.o -o party -g -L/home/bush/Qt/5.4/gcc_64/lib ... | 0 | 2,114 |
How to quickly SELECT 3 random records from a 30k MySQL table with a where filter by a single query? | <p>Well, this is a very old question never gotten real solution. We want 3 random rows from a table with about 30k records. The table is not so big in point of view MySQL, but if it represents products of a store, it's representative. The random selection is useful when one presents 3 random products in a webpage for e... | 0 | 1,251 |
How to show popover on click? | <p>I'm currently working in the 0.5 version of <a href="http://www.siwapp.org" rel="nofollow">Siwapp</a> and I'm trying to show a popover for the payments button on each row of a invoices table. But I have to do it with a click. I have the following JS code:</p>
<pre><code>jQuery(function($){
$('table[data-type="in... | 0 | 1,155 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.