title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Unable to lookup Remote Connection Factory of Wildfly 8.2.0 from Standalone java client Application | <p>I've a Queue in Wildfly 8.2.0 and deployed ear with listener. Then i'm trying to post Text Message to Remote Queue from Client program. In this scenario, unable to lookup Remote Connection Factory. Herewith attaching the program and error.</p>
<p>MDB Listener on Wildfly</p>
<pre><code>import javax.ejb.ActivationCo... | 2 | 3,357 |
pthread-related errors when upgrading test from GoogleTest to GoogleMock (Ubuntu 14) | <p>While trying to add <code>gmock</code> to an existing project that already was using <code>gtest</code>, I have found a series of low-level errors related to <code>pthread</code>. My guess is this is related to how GoogleMock & GoogleTest are built (see details below), but unfortunately there is not much informa... | 2 | 1,173 |
power query subtract row below from row above using multiple conditions | <p>I am using Power Query in Excel and I need to calculate the duration on each "Door_side" using the Time column on a daily level for each individual user.</p>
<p>The data comes from a card based access system and is formatted as follows:</p>
<pre><code>Date Time User_No Door_side
03/12 08:59 User_05 Outsi... | 2 | 1,609 |
jQuery .each() only applying to last element | <p>I've seen lots of answers to similar questions, but can't seem to get this figured out for my specific case. My jQuery logic is only applying to the last element in my <code>.each()</code> function. Can anyone help me understand why? Ultimately, I'm trying to split the items in my lists into two columns.</p>
<p>... | 2 | 1,074 |
Signing PDF using network HSM and PDFBox | <p>I am trying to follow CreateSignature example as a starting point and making changes to it to make it work with our external network based HSM system.</p>
<p>The generated PDF document always complains that the "document has been altered". I am lacking the insight on what should be used to sign. </p>
<p>The follow... | 2 | 1,572 |
how to store strings inside an array in c | <p>How can I store a list of strings in an array in c. cause usually the a string e.g:'string' is stored as s|t|r|i|g in array(?). now if i have an array that has 10 index and want to store string in each one of those indexes, how do i do it? if not doable, what other data structure can i use for it.</p>
<p>e.g: array... | 2 | 1,371 |
net.sourceforge.stripes.exception.StripesServletException: Could not create instance of ActionBean type | <p>While I was working on creating a new stripes action, I found the following error on a log file.</p>
<pre><code>**net.sourceforge.stripes.exception.StripesServletException: ***Could not create instance of ActionBean type*** [site.person.inspector.finaid.budget.ManageSession].**
at net.sourceforge.stripes.contro... | 2 | 2,993 |
Vertical dropdown Menu with submenu showing on hover | <p>I want to make a vertical dropdown menu with the following structure(for each "button" a different "dropdown" div).The idea is when I hover "button", the "dropdown" to appear <strong>over the "button" with the same size</strong> ( the "dropdown" shrinks to the "button" size with equal heights "subnav1" ) or to appea... | 2 | 1,261 |
Struts error: There is no Action mapped for namespace / and action name *** | <p>I am newbie to struts and jsp.
Currently i am stuck on the above error its screwing me badly from last two weeks, dont know what i am doing wrong.
Here's what i am trying to do:</p>
<p>temp.jsp</p>
<pre><code><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>... | 2 | 1,423 |
How to embed a D3 chart in a Polymer.dart element? | <p>Browser: Dartium Version 34.0.1847.0 (258268)</p>
<p>I want to embed D3 inside Polymer.dart elements and I'm just beginning to sort out how Dart and JS interoperate. I started by creating a vanilla HTML page using HTML5/CSS3/JS from D3's introductory tutorial on <a href="http://bost.ocks.org/mike/bar/" rel="nofollo... | 2 | 1,063 |
Create conditional column using GroupBy | <p>I want to create a new column in my data frame based on grouping variable in a column in the data frame and then check for condition in another column in the data frame.</p>
<p>I have tried to use np.where with pandas pd.groupby to create a Status column in the data frame where I am checking if the next value in th... | 2 | 1,246 |
JavaScript Chained Drop Down List that Show/Hide a Div? | <p>I'm trying to combine a chained drop down list with the ability for the last selection to show/hide a div. I've researched and found ways to do both individually, but I'm hitting the wall when it comes to combining the javascript (I am admittedly more of a designer). I would appreciate anyone taking the time to help... | 2 | 1,373 |
Maven Embedded Glassfish Plugin - not starting | <p>I can't seem to get a web application running with the embedded glassfish plugin:</p>
<p>Plugin Configuration:</p>
<pre><code><plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version&... | 2 | 2,336 |
Byte buddy stack manipulation: how to work with local variables and if statements | <p>Generally, the questions are: </p>
<ul>
<li>How and at which moment ByteBuddy generates local variables table and stackmap frames? </li>
<li>What is the correct way to work with local variables and generate if statements in ByteBuddy's <code>Implementation</code> API?</li>
</ul>
<p>Details:</p>
<p>I am using byte... | 2 | 4,605 |
Expression Must have (pointer-to) function type error | <p>I decided it was about time I finished the little infix calculator I started a week ago, and ran into a problem in my evaluate function. My switch statement seems to have an issue with the way I'm handling my array over operator structures. I'm not entirely sure what I'm doing wrong. This isn't the only error I'm ge... | 2 | 2,797 |
JQGrid How to prepopulate before adding new Record | <p>I am adding new data to jqgrid. The data is related to a customer, so new record must contain the customer id. Hence I want the popup form for adding record should come with customer code pre populated (readonly) . Customer Code is available in a dropdown list.
I tried the following - added a custom button with a c... | 2 | 2,736 |
Spring Security: No bean named 'springSecurityFilterChain' is defined | <p>I just equipped a simple Spring test project with basic authentication functionality. When the server is loaded I get the well-known error
<strong>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined</strong>. </p>
<p><code>web.xml</code>:</p>
<pr... | 2 | 1,988 |
Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'chmod' and 'include' | <p>I have my application based on CakePHP 2.10.24.</p>
<p>When I used PHP 7.3 all works well but when I use PHP 7.4 several errors happend:</p>
<p>I should noticed that on WAMP all works fine but not on webserver on CPanel.</p>
<p>I add some codes to trace easier.</p>
<p>Thanks</p>
<pre><code>Array
(
[0] => /php... | 2 | 1,125 |
Custom, separate search form and search results page in Wordpress | <p><strong>Goal/Information</strong></p>
<p>I'm trying to set up a custom search field and custom search results page to display one category of pages. I need these results on a separate, custom search results page so I can customize how the results are displayed without affecting the default search.</p>
<p>For conte... | 2 | 1,295 |
prepared statements in luasql.postgres | <p>I'm trying to follow the example of using prepared statements in luasql found here:
<a href="http://lists.luaforge.net/pipermail/kepler-project/2008-January/002207.html" rel="nofollow">http://lists.luaforge.net/pipermail/kepler-project/2008-January/002207.html</a></p>
<p>I have luasql version 2.2.0 installed. </p>... | 2 | 1,427 |
Error in binutils make for cross compilation | <p>I am trying to compile binutils to set up GNU toolchain for cross compiling for ARM on linux x86 architecture.</p>
<p>For this, I downloaded the GNU toolchain from :
<a href="http://lejosrt.org/tuto/install-gnu-arm-toolchain-under-linux" rel="nofollow">http://lejosrt.org/tuto/install-gnu-arm-toolchain-under-linux</... | 2 | 1,843 |
Cannot read property 'body' of undefined in nodejs | <p>i have a register form in nodejs . </p>
<p>in this form i must check the phoneNumber is Exsist in database or not . </p>
<p>i use the <code>passportJs</code> for doing this .</p>
<p>but when i send the request it show me this error : </p>
<blockquote>
<p>Cannot read property 'body' of undefined</p>
</blockquot... | 2 | 1,465 |
UnboundLocalError:local variable 'cursor' referenced before assignment | <p>So I am a newbie but working on a registration system form in flask/MYSQL</p>
<p>I am receiving this error (UnboundLocalError: local variable 'cursor' referenced before assignment) only when I tried to update it from webpage.</p>
<p>when I use postman its fine.</p>
<p>After hours of playing with the code and rese... | 2 | 2,150 |
Getting TDS driver - java.lang.NullPointerException. this exception is not consistent | <p>I am getting exception when a method is called from 3 or 4 threads. This method get a DataBase connection inside method and populate some values from DB and then connection (connection, resultset and prepareStatement) getting closed properly inside method only. Still getting exception.</p>
<p>Thread_1 - abc() metho... | 2 | 1,347 |
Symfony2 forms and collections - an Order, OrderItem implementation | <p>So I've spent around 5 or 6 hours today battling with Symfony2 forms and am at the point where I'd like some advice from other members of the community. I've tried over 3 different methods to achieve what I'm after and had no success. I've read through the docs, googled everything, asked others, and I'm only a lit... | 2 | 4,684 |
Saving ID to database based on dropdown selection | <p>I am using the following code to bind BusinessID as the DataValueField of the ddlIndustry dropdown. What I want to do is save the selected ID to a different table (Company). I am doing this with ddlIndustry.SelectedValue. For some reason, the first value is always saved (1), and not the selected value. Do you have a... | 2 | 1,289 |
Is it possible to plot images in a ggplot2 plot, that don't get distorted when you save to any non-standard aspect ratio? | <p>I'm looking for any solution to this problem, regardless of packages used.</p>
<p>The problem at hand is that plotted images get distorted when you save them using <code>ggsave</code>. Let me give an example:</p>
<pre><code>image_links = data.frame(id = c(1,2,3,4,5),
image = c("https://cdn... | 2 | 1,124 |
How do I "extract" the data from a ReactPHP\Promise\Promise? | <p><em>Disclaimer: This is my first time working with <code>ReactPHP</code> and "php promises", so the solution might just be staring me in the face</em> </p>
<p>I'm currently working on a little project where I need to create a Slack bot. I decided to use the <a href="https://botman.io/" rel="nofollow noreferrer">Bot... | 2 | 1,710 |
UICollection View Cell is mixing up when i scroll | <p>I am having a problem with cells in a UICollectionView where images are mixing up when scrolling up or down. It will mix up and then stay mixed up, or it will go back to the correct order.</p>
<pre><code>class booksVC: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource,UICollectionViewDelegateFl... | 2 | 2,459 |
can't compile Android app with realm | <p>When I add the realm.io library to my Android app and try to run the app, I get this error during compilation:</p>
<p>Error:Execution failed for task ':compileDebugJava'. > java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to javax.lang.model.element.PackageElement</p>
<p... | 2 | 1,327 |
ivy doesn't download jar from remote after local | <p>I configured ivy to go first maven local repo then remote. But something is going wrong! (By the way, im working with snapshots)</p>
<ol>
<li>If ivy cache doesn't exist, ivy first checks maven local repo and then remote to get required jars. Everything is fine.</li>
<li>If ivy cache exists, ivy just checks local re... | 2 | 1,263 |
Handling messages from different namespaces in Symfony Messenger with RMQ | <p>I'm building an application with micro services approach. For communication between services I use Symfony Messenger with RMQ transport. Basically everything works fine, but all my services has to be in same namespace. Once I tried to separate them into their own namespaces like <code>App\Mail</code>, <code>App\Auth... | 2 | 1,201 |
Java Heap Error in Talend | <p>I am trying to read a 30-60 MB of excel file in talend, but it is giving following error </p>
<pre><code>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.<init>(Unknown Source)
at java.lang.StringBuffer.<init>(Unknown Source)
at org.apache.xmlbean... | 2 | 1,231 |
How to fix cURL error "SSL connection timeout" only on the first time the script is called? | <p>I'm facing a strange problem using cURL with PHP on a Windows server. I have a very basic code:</p>
<pre><code>private function curlConnection($method, $url, $timeout, $charset, array $data = null)
{
if (strtoupper($method) === 'POST') {
$postFields = ($data ? http_b... | 2 | 1,608 |
How to use Boost.Asio on Visual Studio 2005 - Windows Xp? | <p>I have to use the library Boost.asio in C + + Visual Studio 2005 (Windows XP).</p>
<p>I followed these steps:
- I downloaded the executable file. exe to install the Boost libraries on Windows XP in my file path.</p>
<ul>
<li><p>I set the environment variable INCLUDE : W:\boost_1_46_1 (my path file where there are ... | 2 | 1,697 |
Android-null pointer exception after onResume in game loop | <p>I am working on an android game.I was the facing the same issue as <a href="https://stackoverflow.com/questions/5318847/android-crash-when-app-is-closed-and-reopened/5319629#5319629.">here</a></p>
<p>I tried the wait and notify all solution as shown over there.But as soon the app resumes i get Null pointer exceptio... | 2 | 2,234 |
numpy to generate discrete probability distribution | <p>I'm following a code example I found at <a href="http://docs.scipy.org/doc/scipy/reference/tutorial/stats.html#subclassing-rv-discrete" rel="nofollow noreferrer">http://docs.scipy.org/doc/scipy/reference/tutorial/stats.html#subclassing-rv-discrete</a> for implementing a random number generator for discrete values of... | 2 | 1,121 |
vuejs page doesn't refresh automatically using webpack-dev-server | <p>I'm using <code>vue.js</code>, and I want to use <code>webpack-dev-server</code> to refresh page automatically when I modify the <code>vue.js</code> file, but I have to refresh page by myself. </p>
<p><strong>vue</strong>:</p>
<pre><code>import Vue from 'vue';
var myComponent = Vue.extend({
template:"<div>... | 2 | 1,178 |
Does Chromecast support RTP? | <p>AFAIK chromecast doesnt support RTP but when I connect my one plus one to chromecast I got following log, so how is it casting?</p>
<pre><code>09-15 16:07:37.648 815-815/? I/MediaRouterService: Selected global route:Route cast409 (com.google.android.gms/.cast.media.CastRemoteDisplayProviderService:c5d0e5d940851c488... | 2 | 9,534 |
Update Panel & Event firing twice | <p>I have an ASPX page with 3 dropdown boxes via Infragistic controls. 1 of them is inside an UpdatePanel and the two outside of the UpdatePanel is suppose to control what is displayed in the 3rd one via AsynPostBack Event. Both dropdown boxes outside of the UpdatePanel call the same function in the code behind but dep... | 2 | 1,933 |
C# loading the main form after successful login | <p>I have two forms namely Login and Main Form. I want that on successful log in, the log in page should close and the main form should load. But the problem that I was facing was whenever I enter invalid username and password, the main form still shows up.</p>
<p>I am accepting login message(Login Successfull Or Fail... | 2 | 1,092 |
The app has been terminated in debugging mode | <p>When i try to run my xamarin project in debug mode for iOS it display message "The app has been terminated". I am using visual studio 2017 on windows and for debug, i am using MacinCloud for Mac. What setting i am doing mistakes in my Visual Studio for debugging. Below i am getting in my output window in Visual Stu... | 2 | 4,210 |
Getting the center point of a cluster for latitude and longitude in Python | <p>I have a list of of coordinates that have areas mapped out as follows</p>
<pre><code>df=pd.DataFrame({'user_id':[55,55,356,356,356,356,632,752,938,963,963,1226,2663,2663,2663,2663,2663,3183,3197,3344,3387,3387,3387,3387,3396,3515,3536,3570,3819,3883,3883,3883,3883,3883,3883,3883,3883,3883,3883,3883,3883,4584,4594,4... | 2 | 1,866 |
Double Delete using Shared Pointers, even though there is still a shared_ptr to the object, its destructor is being called | <p>I apologize if this is a lot of code to read, if I can simplify with explanations please let me know, also if you'd like to comment on my design/practices feel free.</p>
<p>So my Player is being deleted twice, I'm not sure why. If you look at the call stack, you'll see that GameEventManager is actually calling the ... | 2 | 2,725 |
During cucumber testing Factory already registered: user (FactoryGirl::DuplicateDefinitionError) | <p>in gemfile. i have added factory_girls_rails.</p>
<pre><code>group :test do
gem 'cucumber-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'factory_girl_rails'
end
group :development, :test do
gem 'rspec-rails'
end
</code></pre>
<p>in features/support/env.rb require factories from spec/factories.rb </p>... | 2 | 1,404 |
get_coherence() function error in python while using LDA | <p>I have a problem with using coherence model</p>
<p>my code is</p>
<pre><code>def compute_coherence_values(dictionary, corpus, texts, limit, start, step):
coherence_values = []
model_list = []
for num_topics in range(start, limit, step):
model = gensim.models.ldamodel.LdaModel(corpus=corpus, id2wo... | 2 | 1,849 |
Can't call database function inside CriteriaBuilder construct method | <p>I simplified my DTO class to only have 2 properties: UUID and a Long:</p>
<pre><code>public class MyDto implements Serializable {
private UUID uuid;
private Long sequential;
// Constructor taking properties as parameters
// Geters and setters
}
</code></pre>
<p>And my code works great when I try t... | 2 | 1,591 |
SetContentView() taking time even though layout is very simple and light | <p>My <code>setContentView()</code> is taking around 3 seconds to load even though it has very simple layout withouht any custom views.</p>
<p>xml layout:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+i... | 2 | 3,119 |
Unable to set image from Json to imageView in android | <p>I have made an activity in that i am parsing some data from Json webservice,I can parse all data successfully,And i get image name from that data,And I want top set it in the imageView of a ListView
<p><strong>activity.java</strong></p>
<pre><code>package com.epe.yehki.ui;
import java.util.ArrayList;
import java.... | 2 | 6,662 |
Validation asp.net with bootstrap | <p>I'm trying to make a validation form with asp.net/bootstrap. I'm testing it with one textbox.</p>
<p>Currently this is my code:</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"&... | 2 | 1,297 |
Hibernate @OneToOne child not persisting | <p>I have a Stock entity which has 2 child entities, stock can only be vehicle or property, not both, stock is defined as follows:</p>
<pre><code>@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Stock {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long id;... | 2 | 1,158 |
List index out of range while training with model.fit | <p>First of all, I tried to look at other similar questions, but it has not fixed my issues.</p>
<p>I have a project which required me to use Data Augmentation to increase the samples and Transfer Learning with VGG16 to improve the accuracy. I found this Github link online <a href="https://github.com/sachinruk/deepsch... | 2 | 6,801 |
Unit test with LiveData Method getMainLooper in android.os.Looper not mocked | <p>I cannot make liveData.postValue working in while trying to make unit test. I have been checking in google for a solution and this is the code I have now. </p>
<pre><code>public class ProjectListViewModelTest {
GetProjectList getProjectList = Mockito.mock(GetProjectList.class);
ProjectModel.Project project... | 2 | 1,604 |
Why isn't Django rendering my block content or recognizing a logged in user? | <p>I have <code>base.html</code> which contains a <code>{%block bodycontent %}</code> and <code>{% endblock %}</code> tag, this template works everywhere else so far and resides in the project level templates directory. Cool.</p>
<p>Then, in an app specific template directory, I have <code>directory.html</code> which... | 2 | 3,124 |
Upgrade xwiki (2.5 to 4.4) | <p>Im using XWIKI ENTERPRISE 2.5 and want to upgrade it to 4.4 or 4.3 (stable)
I found <a href="http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade" rel="nofollow">this upgrade documentation for XWiki</a>. Following the guide, I backed up the important files in <code>WEB-INF</code>.
After that, I copied all the... | 2 | 2,808 |
How to Convert a byte array to DSA private key? | <p>As a part of project implementation, i have done the following things:
1. Generete DSA keys
2. Encrypt the private key using AES
3. Save into the file
4. Open the file and read the encrypted private key
5. I tried to convert the read value into primary key format but error comes here.
I am attaching the code of the... | 2 | 1,182 |
wso2 OAuth2Filter : org.apache.axis2.AxisFault: Transport error: 302 Error: Found | <p>I am trying to protect my web application with OAuthFilter in wso2is-5.1.0, I am following this link from github <a href="https://github.com/sagara-gunathunga/oauth-filter" rel="nofollow">https://github.com/sagara-gunathunga/oauth-filter</a>, my code is running fine and it is protected. But when I am accessing my ap... | 2 | 1,151 |
start another Activity on item click in Recyclerview, android | <p>I am making a notes app, when i click on any item in Recyclerview, i want to start a new activity and pass some String, i have referred many links even from stackoverflow and i tried them, still not working. Can you please help me, since i am just beginner in android.</p>
<p>This is my NotesAdapter</p>
<pre><code>... | 2 | 7,084 |
Handling Airplane Mode with HTTP Requests | <p>My app has quite a few occasions where it makes HTTP post requests. I discovered during testing that if the user is in airplane mode when this request is made, the app crashes. So, in an effort to handle this situation elegantly, I call a function that tests whether the phone is in airplane mode immediately prior to... | 2 | 1,679 |
forced to close on screen orientation changes | <p>My app is forced to close after I press "Ctrl-F11" to rotate screen. Here's the error log: </p>
<pre><code> 01-02 13:47:30.663: E/AndroidRuntime(498): FATAL EXCEPTION: main
01-02 13:47:30.663: E/AndroidRuntime(498): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ecnu.sei.manuzhang.study/c... | 2 | 1,984 |
What is the best way to route paths in a large grid? | <p>I'm working on an algorithm to find a set of non intersected paths in a grid for a
given pairs of points..
Like this for these pairs:
(9,4) and (12,13)
<img src="https://i.stack.imgur.com/3ZW1M.png" alt="Sample Grid"></p>
<p>The output should be something like this:</p>
<pre><code> 9,10,11,7,3,4
13,14,15,... | 2 | 6,530 |
MessageSource is not being injected in ControllerAdvice | <p>I have a simple Spring MVC application with a controller advice class for <code>NullPointerException</code>. This controller advice uses a message source injected with <code>@Autowired</code>.</p>
<p>I wrote a test of this controller advice by mocking the MessageSource field with <code>@MockBean</code>, but it look... | 2 | 2,735 |
DataTables API undefined with Symfony Webpack Encore | <p>I'm using Webpack Encore with Symfony 3.4 <em>(part of migration to Symfony 4)</em>.</p>
<p>I have Datatables (installed via NPM to node_modules) working with jQuery but the <code>api</code> functions such as <code>.columns</code> are returning: <code>.column is not a function at</code></p>
<p><strong><em>Package ... | 2 | 1,632 |
How to make Azure nodejs webapp re-run npm install? | <p>I'm running a Node webapp on Azure.
I deploy the app using the "local git" method.
Every time I make changes to my source, commit, and then deploy with <code>git push azure master</code>, the code on the site is updated, as expected.</p>
<p>But one of my recent changes included adding a new package to my <code>pack... | 2 | 1,518 |
Java: How to create torrent file for multiple files or directories? | <p>The next code is a part of jBitTorrent API for Java a bit modified by me:
<code><pre>
if (!torr.saveAs.matches(""))
info.put("name", torr.saveAs);
else
info.put("name", "noDirSpec");
ArrayList files = new ArrayList();
for (int i = 0; i &... | 2 | 1,932 |
Canvas background image not showing on opening webpage | <p>I am creating a canvas to display captcha in it using javascript. The problem is I want to add a background to it but the background does not load on opening the page. However, when I hit the refresh button it works fine. Here's the code:</p>
<pre class="lang-html prettyprint-override"><code><script>
var ... | 2 | 1,241 |
How can I delete a row on fetch reactjs | <p>this is the part where i the table from the api </p>
<pre><code>renderItem(d, i) {
return <tr key={i} >
<td> {d.Employee_ID} </td>
<td>{d.Employee_Name}</td>
<td>{d.Address }</td>
<td><center><button className ... | 2 | 1,526 |
HttpUrlConnection gerResponseCode giving connection reset exception | <p>When i try to hit con.getResponseCode() i get connection reset exception but while hitting the same url in web browser it returns the response correctly but from my code the response is not returned. Please help me to check this.</p>
<pre><code>This is the code:-
private HttpURLConnection con;
private String direc... | 2 | 4,136 |
Initialize a vector of Rect with some Rect objects - Opencv C++ | <p>I'm working on a face tracking project with Kalman Filter. Basically, I want to store the result of my tracking application (int x, int y, int width, int heigth) on a vector of Rectangles, (i.e. each face will be stored on a Rect, then all the Rects will be stored on a vector of Rect).</p>
<p>The following code is... | 2 | 1,253 |
Getting errors when converting a text file to VCF format | <p>I have a python code where I am trying to convert a text file containing variant information in the rows to a variant call format file (vcf) for my downstream analysis. </p>
<p>I am getting everything correct but when I am trying to run the code I miss out the first two entries , I mean the first two rows. The code... | 2 | 1,207 |
Input area displaying different in IE vs Chrome | <p>I have created a login area for my website using a table and standard CSS. My problem is IE is adding something in there which is making it render different to firefox and chrome. </p>
<p>I'm wanting the input[type=text"] to be a fixed width and display in the table as it does in chrome.</p>
<p><img src="https://i... | 2 | 2,161 |
jQuery replacing img src in three steps | <p>Bit stuck with this one. I'm building a product image gallery for a Shopify shop that needs to have the following functionality:</p>
<ol>
<li>Thumbnails for each product image</li>
<li>Medium-sized image that goes into the main image 'container'</li>
<li>Full-sized image that appears as a lightbox when you click th... | 2 | 1,340 |
Linq Expressions. Equivalent of greater than for strings | <p>I have followed several threads on SO and other websites and am still having difficulty.</p>
<p>I have the following code:</p>
<pre><code>public static IQueryable<TSource> Between<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, TKey low, TK... | 2 | 1,214 |
Errors occur when include many 3rd party jars to one simple spring boot project | <p>Whether it's possible to use API from one JAR from myself, while not include its dependency?</p>
<p>I created one standalone maven project(A) which is an API module and it uses many 3rd party jars and should be used in several projects. But in one spring boot project(B), since A introduced its dependencies, the spr... | 2 | 8,458 |
pip: module installed as editable not found | <p>I'm trying to install the source checkout of <a href="https://github.com/martok/py-symcircuit" rel="nofollow noreferrer">my own package</a> as an editable package using pip, but it doesn't get picked up as installed.
Yes, there are a whole lot of related questions, but they're mostly about non-standard directory str... | 2 | 1,629 |
md-max date working but getting this angular error as soon as I am setting md-max-date | <p>I am trying to set a max date of today like this:</p>
<pre class="lang-js prettyprint-override"><code>My controller:
vm.maxDate= maxDate;
function maxDate() {
return new Date((new Date()).getFullYear(), (new Date()).getMonth(), (new Date()).getDate());
}
</code></pre>
<p>My HTML:</p>
<pre><code><md-datepi... | 2 | 1,592 |
A star implementation in C++ (Language Issues) | <p>I am working on an A star algorithm to solve an N tile slide puzzle. Give a particular goal state I want to find the least number of steps to solve it. I understand the algorithm but I am having issues with C++ due to my lack of understanding. Any style suggestions would be greatly appreciated as well.</p>
<ul>
<li... | 2 | 5,189 |
Native shared library loaded to slow in Android | <p>I have a shared library placed in libs/armeabi folder. It is loaded using</p>
<pre><code>System.loadLibrary("library_name.so");
</code></pre>
<p>The size of the library is around 3MB. The loading time is very long. It sometimes last almost 20 seconds. It blocks my GUI. I tried to put <code>System.loadLibrary("libr... | 2 | 1,567 |
IDCAMS LISTCAT deleting VSAM file when next step is IEFBR14 | <p>I have a requirement wherein I need to check if a VSAM file exists or not. If it is not present then I need to create it like TEST.FILE2. My JCL is as : </p>
<pre><code>//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD * ... | 2 | 3,923 |
How to save Flask-SocketIO messages with Flask-SQLAlchemy and Javascript without jQuery? | <p>I have followed this tutorial on YouTube: <a href="https://www.youtube.com/watch?v=zQDzNNt6xd4" rel="nofollow noreferrer">https://www.youtube.com/watch?v=zQDzNNt6xd4</a> for creating a chat application. I tried to save the messages but it does not work.
I also followed this tutorial for saving the chat history: <a ... | 2 | 1,668 |
How to avoid the child QMainWindow disappearing? | <p>When I click the button, "ChildWindow" will flash and disappear. Then If I add the function exec_(), it will report an "AttributeError" because "QMainWindow" don't have this attribute.
How to modify the function "showChildWindow" so that it can work well? Thank you.</p>
<pre><code>import sys
from PyQt4 import QtCo... | 2 | 1,059 |
Generate Batch QR codes from PHP | <p>I am using PHP QR Code library and it works fine to generate one QR Code. What I require is alter my php to display a bulk of QR codes which are generated from the text field (shown below) and which will be comma separated. This is the script I have:</p>
<p>echo "<h1>PHP QR Code</h1><hr/>";</p>
<pre><code>//set it... | 2 | 1,261 |
Unknown Control Error with CollapsiblePanelExtender in a gridview | <p>I'm in the process of troubleshooting a coding challenge in a gridview where I'm attempting to insert a CollapsiblePanelExtender from the Ajax Control Toolkit (in Visual Studio 2012) into a section of checkboxes. What I'm hoping to do is to make the entire section of checkboxes collapse and expand at the users requ... | 2 | 3,023 |
Bootstrap slider bar error slider is not defined | <p>I use the slider from <a href="https://github.com/seiyria/bootstrap-slider" rel="nofollow noreferrer">github</a> and decided to use 1 example from <a href="http://seiyria.com/bootstrap-slider/" rel="nofollow noreferrer">here</a>.
Controller does not reset, an error:</p>
<pre><code>individual_task_3.HTML code:32 Unc... | 2 | 1,872 |
Java Apache HTTP Client fails with http request where cURL succeed | <p>I'm finding difficult performing a simple http request in Java using apache http client. The request is a simple GET toward the following url <a href="http://109.231.121.64:20622/v1/collections/S4C/objects/OpsConfig/data" rel="nofollow">http://109.231.121.64:20622/v1/collections/S4C/objects/OpsConfig/data</a> (which... | 2 | 1,164 |
Release from Azure DevOps to Azure App Service: "You do not have permission to view this directory or page" | <p>I saw a lot of posts about this issue. I want to create my pipeline from Azure DevOps to Azure App Service.</p>
<p>In DevOps I created my pipeline like:</p>
<pre><code>pool:
name: Azure Pipelines
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
projects: |
**/P... | 2 | 1,635 |
Reading JWT Token from API in ASP.NET Core | <p>My setup: I've created and have running a WebAPI solution that performs the authentication of a username and password against a source (currently a db). This generates the JWT token and returns it to the requesting app (a ASP.NET Core 2.2 app). </p>
<p>Most solutions talk of securing the WebAPI exposed methods but... | 2 | 2,544 |
Reverse for 'event_detail' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['events/(?P<id>\\d+)/$'] | <p>I'm following this tutorial <a href="http://slash4.net/blog/learn-django-in-4-hours" rel="nofollow">http://slash4.net/blog/learn-django-in-4-hours</a>, and i get this Error NoReverseMatch at / ,when i run <a href="http://localhost:8000/" rel="nofollow">http://localhost:8000/</a></p>
<p>urls.py</p>
<pre><code>url... | 2 | 1,764 |
Meaning of "index" parameter in glEnableVertexAttribArray and (possibly) a bug in the OS X OpenGL implementation | <p>1) Do I understand correctly that to draw using vertex arrays or VBOs I need for all my attributes to either call glBindAttribLocation before the shader program linkage or call glGetAttribLocation after the shader program was successfully linked and then use the bound/obtained index in the glVertexAttribPointer and ... | 2 | 2,971 |
Multiple custom fonts for multiple textview | <p>One of my app activity include many textview i want to set multiple custom font for that textviews,</p>
<p>I tried the below code but it doesn't work to customize textview ,</p>
<p>any help will be appreciated</p>
<pre><code>public class Text extends Activity {
/** Called when the activity is first created. *... | 2 | 1,506 |
maven-jaxb plugin - Two classes have the same XML type name | <p>Following problem, I have 2 WSDL files which from I have to generate Stubs. But both WSDL files contains same XML type names (second WSDL is a further stage of first WSDL).</p>
<p>I generate the stubs with following configuration:</p>
<pre><code> <plugins>
..
<plugin>
<gro... | 2 | 2,373 |
Symfony 5: error loading bundle at extension's load method | <p>I am trying to understand the necessary steps for creating reusable bundles. I'm using Symfony 5.2 and PHP 8.0.</p>
<p>I have two sibling directories containing the projects <code>MainProject</code> and <code>FirstModule</code>.</p>
<p><code>composer.json</code> for project <code>MainProject</code>:</p>
<pre class="... | 2 | 6,516 |
Paypal Checkout client integration - Problem with returning order id promise | <p>i have a problem integrating paypals payment gateway. I am using javascript for the client, python for the backend and the checkouts v2 api.</p>
<p>Creating a order on the backend works without trouble, but while waiting for my servers response the createOrder function raises a error:</p>
<pre><code>unhandled_error ... | 2 | 2,385 |
Request to Flask Application Does Not Get Through to Docker Container | <p>I have written a «Hello World» application using Python (3.7.4) and Flask (<code>hello.py</code>):</p>
<pre><code>from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
</code></pre>
<p>I use the followin... | 2 | 1,295 |
Magento API V2 - WSDL and associative multi arrays | <p>I extended the Magento V2 API and therefore created a wsdl.xml. My webservice returns a associative multi array. I googled a little bit and found two definitions of complex types:</p>
<pre><code><complexType name="associativeMultiArray">
<all>
<element name="associativeArray" type="typens... | 2 | 1,099 |
Linear Layout onclick listener not working with recycle view | <p>I have a problem with Recycleview in linearLayout. In the below code When I click on chat section(Linear Layout) Toast is not getting visible when I set LayoutManager to RecycleView. Please help me the toast will be visible when I click on linear layout.</p>
<p>Activity code:</p>
<pre><code>public class PracticeAc... | 2 | 1,030 |
Is SonarQube analysis incremental or? | <p>We have a process to check-in PL/SQL store procedures changes into TFS, then I use a Jenkins job to analysis them with SonarQube PL/SQL plugin. I see it always index all files (162). How does SonarQube Runner update the result to the database? Delete the existing one and create a new one, or update incrementally?</p... | 2 | 2,436 |
ng-show Not Showing When input is invalid | <p>I am having trouble with form validation in AngularJS. I am trying to show a div based on whether an input is invalid. Angular is putting the correct classes on my inputs (ng-touched and ng-invalid) but it is still keeping the div with a ng-hide class. </p>
<p>form.html
</p>
<pre><code> <form... | 2 | 3,928 |
nHibernate: Fails to rollback complete operation | <p>We have a userobject split between two tables, a person table and user table.</p>
<pre><code>public UserMap()
{
Table("Person");
Id(x => x.PersonId, "PersonId");
Map(x => x.Name, "Name");
Join("User", s => {
s.Fetch.Join();
s.KeyColumn("PersonId");
s.Map(x => x.Username, ... | 2 | 1,085 |
React How to Filter Data Array using Multiple Checkbox | <p>I intend to filter data by selecting different checkbox through the following codes:</p>
<pre><code>const movieData = [
{
title: "movie 0",
genre: ""
},
{
title: "movie 1",
genre: ["action", "thriller"]
},
{
title: "movie 2",
... | 2 | 1,570 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.