title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
java.security.ProviderException error
<p>I have recently been trying to make the following piece of code work:</p> <pre><code>... // Create an ObjectOutputStream to write the game out. ObjectOutputStream stream = null; try{ stream = new ObjectOutputStream(new FileOutputStream(file)); } catch(IOException ioe){} // Write this game out. try { stream.writeO...
1
2,579
Angular StaticInjectorError Error
<p>I'm writing a library which need to wrap <a href="https://github.com/manfredsteyer/angular-oauth2-oidc/" rel="noreferrer" title="angular-oauth2-oidc">angular-oauth2-oidc</a>.</p> <p>Everything (the library and the consumer application) compiles fine, but on runtime in the browser I get the following error:</p> <pr...
1
1,435
gevent fails to install in a python virtual environment on OS X Capitan
<p>I just installed OS X Capitan and tried installing gevent in a python2.7.x virtual environment. And here's what I get. Looks like something related to gcc. Here's the traceback:</p> <pre><code> Building wheels for collected packages: gevent Running setup.py bdist_wheel for gevent Complete output from command /...
1
8,396
Filtering inside a FOREACH block by a condition value calculated inside the same block in PIG
<p>I have a log dataset, and I need to filter out all the log entries for an equipment after a failure (Action = 2).</p> <p>In this example:</p> <pre><code>EquipId, ScvId, Action, TimeStamp Ag,01,1,14-01-01 0:00:01 Ag,01,1,14-01-02 0:00:01 Ag,01,2,14-01-03 0:00:01 Ag,01,1,14-01-04 0:00:01 Ag,01,1,14-01-05 0:00:01 Ag,...
1
1,095
R Shiny loop to display multiple plots
<p>Ok I have code that you can run below. I am trying to modify this code:</p> <p><a href="https://gist.github.com/wch/5436415/" rel="nofollow">https://gist.github.com/wch/5436415/</a></p> <p>so that max_plots is dynamically set using input from the UI. The input from the UI is dynamic as well.</p> <p>Here is my UI....
1
1,173
retrofit.RetrofitError: sendto failed: EPIPE (Broken pipe)
<p>I'm using Retrofit 1.9.0 for my RESTclient in android, It get error like i post below: </p> <pre><code>retrofit.RetrofitError: sendto failed: EPIPE (Broken pipe) 04-03 20:18:51.995 8634-8634/up.tech.opener W/System.err: at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:395) 04-03 20:18:51.995 ...
1
1,345
MVC Html.ValidationMessageFor is not firing in a partial view
<p>The Html.LabelFor works fine, so why not Html.ValidationMessageFor? My partial view looks like;</p> <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;SHP.WebUI.Models.OtherLeaveViewModel&gt;" %&gt; &lt;% var unique = DateTime.Now.Ticks.ToString(); %&gt; &lt;script language="javascr...
1
5,210
Service discovery using JmDNS in Eclipse : Wifistatemachine errors
<p>My code worked but it does not work suddenly. The code is as follows.</p> <pre><code>public class AndroidDnssdDiscoveryTestActivity extends Activity { /** Called when the activity is first created. */ android.net.wifi.WifiManager.MulticastLock lock; android.os.Handler handler = new android.os.Handler(); final Cont...
1
2,766
"Expected an array. Was supplied type `object`." How to solve this error in my DataTable function for my Dash app?
<p>please look at my code and scroll to my <code>statsTable(symbols)</code> function, that is where my error comes up.</p> <pre><code>import dash import dash_table as dt import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Ou...
1
2,239
Access & SQL-Server: Resetting Autonumber field with table wipe
<p>I am trying to keep a copy of an activity table synchronized between a SQL Server Express table and the production Access version. In other tables, I am able to wipe the contents of the SQL Server table, and insert the whole mess back in to capture all of the changes. However, when I attempt to do that with this t...
1
1,624
How to use compare.linkage in the R package RecordLinkage -- unexpected output
<p>I am using the compare.linkage function in the R package RecordLinkage, and getting a result I know is wrong, so I know I'm misunderstanding something. I am using R 3.2.3 for x64 Windows. I am very familiar with Stata but not so much with R. I just cross-posted at r-help.</p> <p>I can create record pairs from the b...
1
1,291
react-virtualized WindowScroller performance issues
<p>I am using the react-virtualized library to create efficient news feed. The library is awesome. I combined WindowScroller, AutoSizer and VirtualScroll components to have inifinite scrolling behavior. The problem is that when I set the VirtualScroll height manually and don't use WindowScroller the performance is grea...
1
3,291
Get Angular JS,Require JS & Framework 7 to work-together
<p>I am trying to create a seed application using Angular JS,RequireJS &amp; Framework 7. I have so far created the following folder structure.</p> <p>My main folder looks like below:</p> <p><img src="https://i.stack.imgur.com/JmYDW.jpgmy" alt="enter image description here"></p> <p>and my scripts folder looks like t...
1
2,072
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException if-statement
<p>I'm developing a tic tac toe game and have one problem - Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException, it occurs when i try to press the button. The buttonText is changed to X, but after that i get the problem. I believe there is something wrong with if statements: The source code of Main.ja...
1
3,192
jQuery Mobile + FullCalendar - need to refresh page to see it
<p>Having an issue with the FullCalendar plugin for jQuery Mobile. Basically, if I load the page, the calendar doesn't know.. but if I reload the page, it does. From what I've read, it seems that on jQuery mobile only loads data inside data-role="page. If I set the link to the page as data-ajax="false", it works fine, ...
1
1,959
What does the proxy server do when proxying a https request
<p>I build a forward proxy server with apache using follow settings:</p> <pre><code>&lt;VirtualHost *:8088&gt; ServerAdmin test@gmail.com DocumentRoot "E:/test" ServerName www.test.com ServerAlias test.com ErrorLog "logs/test.com-error.log" CustomLog "logs/test.com-access.log" common &lt;Di...
1
2,017
AWS Maximum number of retry attempts reached : 3
<p>I hosted simple web application in amazon cloud.I am facing problem reading the bucket object in my hosted webapplication.I got the error in the below line, when i tried to create the,</p> <p><strong>GetObjectResponse response = client.GetObject(request);</strong></p> <p>Error: Maximum number of retry attempts rea...
1
1,634
Correct way to solve "javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation"?
<p>I moved my war file (which ran on tomcat 7 environment) to tomcat 6 environment.Then I get this exception .And as solutions I tried <a href="https://stackoverflow.com/questions/8487048/java-lang-linkageerror-javax-servlet-jsp-jspapplicationcontext-getexpressionfac">This answer</a>.But still no good!! I want to run o...
1
1,572
listen EACCES: permission denied 0.0.0.0:3001 on npm run JHipster Spring Boot + Angular project
<p>Below is the error message I'm getting on <strong><code>nmp run</code></strong> in JHipster Spring Boot + Angular project, thought to change this port manually, but could not find <strong>3001</strong> port anywhere in the project, deleted <strong>node_modules</strong> and <strong>package-lock.json</strong> file, re...
1
8,522
Cant get digest auth to work with node.js
<p>I'm trying to get a simple (!) digest authentication working with node js using an an API from gathercontent.com.</p> <p>Everything seems to be working except I still get a "Wrong credentials" response that looks like this:</p> <pre><code>{ success: false, error: 'Wrong Credentials!' } </code></pre> <p>The code l...
1
1,729
Getting started with django and heroku, "application error" after upload
<ol> <li>I have been using this guide: <a href="https://devcenter.heroku.com/articles/getting-started-with-django" rel="nofollow">https://devcenter.heroku.com/articles/getting-started-with-django</a></li> </ol> <h2>requirements.txt</h2> <pre><code>Django==1.6.5 argparse==1.2.1 dj-database-url==0.3.0 dj-static==0.0.5 ...
1
2,219
g_main_loop_run blocks the Qthread and does not allow to stop video
<p>I have created a separate class for gstreamer to stream videos.<br> This class runs on separate thread by using moveToThread().<br> I am using Qt5.5 for development.<br> When I issue startcommand on main thread , Qthread starts and gstreamer uses <code>g_main_loop_run</code> to stream videos. This works absolutely f...
1
1,371
Oracle SQL rounding misbehavior
<p>I encountered a strange behavior of the <code>binary_double</code> rounding with Oracle SQL. <code>binary_double</code> values should be rounded <code>half even</code> according to the <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm" rel="nofollow">documentation</a>, but when testing ...
1
1,513
Shopify, TypeError: $(...).jcarousel is not a function
<p>So I have seen the other questions with this same title, and I don't think I am running into the same problems they had (Specifically because I am not using Drupal and the files do seem to be loading in the page header as shown below). I understand that it cannot find that function, but I don't know why. This is the...
1
1,963
How to add search function code used for "search bar" inside Onclick of "search button" in android
<p>I have 2 activities, in 1st activity there is an "keyword" and "search" button, based on the keyword given related items should be displayed in the second activity in listview form, but just to test i hv placed search bar on top of the listview and coded for it, and this works fine, now the issue s i want to move "s...
1
2,637
How high in the <head> section can you safely put the Google Tag Manager code?
<p>Google Tag Manager instructs developers to:</p> <blockquote> <p>Paste this code [THE TRACKING CODE] as <strong><em>high</em></strong> in the <code>&lt;head&gt;</code> of the page as possible:</p> <p><code>&lt;!-- Google Tag Manager --&gt; &lt;script&gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.s...
1
1,448
Flask+Pytest+SQLAlchemy: Can't create and drop tables when run pytest using flask-sqlalchemy
<p>when I run tests It succeeds to connect to the database, but it does not create tables. I think maybe there is a different way to create tables when I use flask-sqlalchemy, but I can't find the solution.</p> <p>This is app.py</p> <pre><code>db = SQLAlchemy() def create_app(config_name): app = Flask(__name__, t...
1
1,065
How to do phpinfo on Gwan and php
<p>On cent OS 6.4 , <a href="http://gwan.ch/" rel="nofollow">GWAN</a> web/http server and php is installed. created file info.php in /csp</p> <pre><code>&lt;?php phpinfo(); exit(200); ?&gt; </code></pre> <p>gives header </p> <pre><code>HTTP/1.0 200 OK =&gt; Server =&gt; G-WAN Date =&gt; Thu, 05 Sep 2013 08:21:11 GM...
1
1,177
Excel VBA to get a file list by multiple file extensions and last modified date
<p>In my folder, I have different types of files:<br><br> <strong>.mp4 .wav .out .outreview</strong> <br><br> I am using a VBA code in excel to make a list of all of the files according to their file extension. As seen in the screenshot: <br><br> <img src="https://i.stack.imgur.com/symWe.png" alt="enter image descripti...
1
1,399
nginx-ingress return default backend on https request
<p>My AKS is accessible via a nginx-ingress. Everything works with https but since I use https nginx is not able to match any routes and use the default backend.</p> <p>I'm using Kubernetes Version 1.15. I changed my domain to example.com and the IP to 51.000.000.128. The SSL certificate is signed by an external provi...
1
3,489
how access localstorage using chrome extension
<p>I am working on a chrome extension and I am able to successfully store information to local storage, but my issue is actually access that information once it's in local storage. What I have not does not return anything just says NULL.</p> <p>I have two files: options.html, and content.js. The options.html is where ...
1
1,149
Django-oscar error - django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: staticfiles
<p>I am trying to start Django-oscar and have followed the instructions as given <a href="http://django-oscar.readthedocs.org/en/latest/internals/getting_started.html" rel="nofollow">here</a>, but when I Try to use <code>python manage.py runserver</code> or <code>python manage.py migrate</code> I am getting the followi...
1
3,215
Classic ASP - IIS 5 to IIS 6 migration causes image caching problems?
<p>Apologies in advance for the long-winded question.</p> <p>I'm really a database programmer, but have inherited support of a classic-ASP intranet application which has recently been migrated from IIS 5 to a new server running IIS 6. The user-base is about a dozen, all using IE 6.</p> <p>The UI displays hierarchies ...
1
1,065
GridView content disappears during scrolling
<p>I have a <code>GridView</code> in my application in which I want to show text and check boxes just like emails inbox page. I use an adapter for that but when I show more than 15 elements the text and check boxes of top rows disappear so when I scroll upside again they aren't visible. Here is my code </p> <pre><code...
1
1,063
ArgumentError: argument --q: conflicting option string(s): --q in YouTube Data API
<p>I am trying to search the youtube videos using YouTube Data API in python code. I am getting Argument Error and not able to fix this issue. Already few similar issues are there. But there is no solution given to this issue so far. How can I achieve the result ? I tried to use the same code given in youtube data API'...
1
1,919
Keras fit_generator: Unexpected usage of __getitem__ method
<p>I am using the fit_generator function to train my models and want to verify that my data is constructed and used as intended. My class derived from keras.utils.Sequence() implements the methods <code>__getitem__</code>, <code>__len__</code> and <code>on_epoch_end</code> and looks like this: </p> <pre><code>class Pa...
1
3,168
onclick Listener for custom listview
<p>I am developing an android application with a custom list view ( with a single image and two text views)</p> <p>The class mainactivity has .... </p> <pre><code>public class MainActivity extends ActionBarActivity { String[] memetitles; String[] memedesc; ListView list; int[] images = {R.drawable.angry_icon,R.drawab...
1
1,727
Spring toolsuite shows error on <execution> for maven-jaxb2-plugin
<p>I am using Spring Tool Suite version 3.7.0.RELEASE and I'm trying out an import of a WSDL offered by Amazon. The import succeeds, but Eclipse gives an error message on the tag. </p> <p>I am using the following pom.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apa...
1
1,647
How can I correctly modify a generated XSD to overcome a known .Net bug that causes exception "cs0030:Unable to generate a temporary class"
<p>I have been tasked to send data to a 3rd Party web service, they have provided a test service that is proven to work with a Java client, however, it doesn't in .Net.</p> <p>When I generate the service proxy and either instantiate the service or serialise the request object, I get the following error:</p> <pre><cod...
1
1,094
Android custom keyboard layout leaving a margin of white at the side
<p>I'm working on a custom keyboard for Android, and I've run in to an issue where the keyboard seems to leave a white line/space at right, instead of filling the parent view... (don't mind the icons, it's simply placeholder graphic for now)</p> <p><a href="https://i.stack.imgur.com/1TlhT.png" rel="nofollow noreferrer...
1
3,258
Python Comparing two lists of strings for similarities
<p>I'm very new at Python but I thought it would be fun to make a program to sort all my downloads, but I'm having a little trouble with it. It works perfectly if my destination only has one word in it but if the destination has two words or more this is where it goes wrong and the program gets stuck in a loop. Does an...
1
1,041
Ansible: get specific attribute value from json output
<p>I have the following Ansible task:</p> <pre><code>tasks: - name: ensure instances are running ec2: aws_access_key: "{{aws_access_key}}" aws_secret_key: "{{aws_secret_key}}" ... user_data: "{{ lookup('template', 'userdata.txt.j2') }}" register: ec2_result - debug: msg: "{{ ec2_re...
1
1,121
React application npm error code ELIFECYCLE
<p>Getting below in my react application. I have tried reinstallation of node_module, setting environment variable C:\Windows\System32</p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="true"> <div class="snippet-code snippet-currently-hidden"> <pre class="snippet-code-js lang-...
1
1,124
How to manage permissions for a volume mounted into a docker container?
<p>I'm developing a Wordpress theme, and want to use Docker in my dev setup. What I've done is pretty simple:</p> <ul> <li>create a <code>database</code> service running MySQL 5.7</li> <li>create a <code>wordpress</code> service, where I mount my theme folder as a volume into <code>/var/www/html/wp-content/themes</cod...
1
1,396
Visual Studio 2019 (16.4.2) crashed without being able to open solutions
<p>I just see 16.4.2 released, but after I upgraded my VS 2019, as soon as I try to open a solution I got error</p> <blockquote> <p>The 'RoslynPackage' package did not load correctly.</p> <p>The problem may have been caused by a configuration change or by the installation of another extension. You can get mor...
1
1,539
Python: How can I use an external queue with a ProcessPoolExecutor?
<p>I've very recently started using Python's multi threading and multi processing features.</p> <p>I tried to write code which uses a producer/consumer approach to read chunks from a JSON log file, write those chunks as events into a queue and then start a set of processes that will poll events from that queue (file c...
1
1,502
maven-release-plugin does not work for multi-module POMs
<p><strong>Plugin version:</strong> 2.0</p> <p>I am trying to use the maven-release-plugin to set the version of the parent POM and all modules.</p> <p>Using the following parent POM:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://w...
1
2,101
Cannot install an R package from Github
<p>I'm trying to run <code>devtools::install_github("gaborcsardi/notifier")</code> but R does not appear to be properly recognizing RTools; which is located in <code>C:\Rtools</code>.</p> <p>After following the instructions on <a href="https://github.com/r-lib/devtools/issues/1772" rel="noreferrer">https://github.com/...
1
3,420
Why Share on LinkedIn API return 400 Bad Request?
<p>I'm trying to post a LinkedIn share update via its <a href="https://developer.linkedin.com/docs/share-on-linkedin" rel="nofollow">Share on LinkedIn</a> API using a PHP library <a href="https://github.com/Happyr/LinkedIn-API-client" rel="nofollow">LinkedIn-Client API</a>. I've successfully authorized the user and I g...
1
2,798
InitilizationError when JunitTest with Maven
<p>I'm trying to do some Junit-Test's with Maven3 but always get some initilizationError(some testclass here) when executing test which have JUnit-Annotations (all other tests run fine). When I run the tests in Eclipse all is fine. But running the tests with maven will break. My Testproject is packaged as eclipse-plugi...
1
3,434
Android Multi-touch event problems...No new touch events while dragging?
<p>So what I'm trying to make is a little space game, You control the ship with a <strong>graphic on-screen joystick</strong> using <code>touch</code> and <code>drag</code>. I have gotten this to work fine. The problem arises once I started to try and add the ability to touch the top portion of the screen to fire a wea...
1
1,532
How to run batch file(.bat) or batch code in C++ program?
<p>I am creating a college project in C++ language using Dev C++ SDK, with the help of Windows API (windows.h header).</p> <p>I have to create a Window Interface which consist of a button and I want to use that button to open a batch file (.bat) or run batch code stored in the program.</p> <p>I have created a Window ...
1
1,539
Issues when deploying solution to Service Fabric cluster
<p>All,</p> <p>I seem to be unable to deploy an application that runs perfectly on my local cluster to a cluster in Azure.</p> <p>Strange thing is that I was able to deploy this application in the past, but seem unable to now. Upon deployment of the application it seems that my stateless services are first deployed w...
1
1,574
convertView is being passed as null even if the view exists
<p>I have developed an android application where image and text are displayed in a grid view and when the user scrolls down next ten items(image and text) are displayed. The problem arises when the getView method of adapter is called after adapter.notifyDataSetChanged() call. The adapter recycles the data but positions...
1
2,248
cannot fetch token error when using cloudsql-proxy with GKE
<p>I am using GKE with istio add-on enabled. Myapp somehow gives 503 errors using when using websocket. I am starting to think that maybe the websocket is working but the database connection is not and that causes 503's, as the cloudsql-proxy logs give errors:</p> <pre><code>$ kubectl logs myapp-54d6696fb4-bmp5m cloud...
1
2,645
login view using NSURLSession post request
<p>I am trying to have a login view for an ios app, this is the page I am trying to access <a href="http://demo.redmine.org/login" rel="nofollow">http://demo.redmine.org/login</a> I tried to use NSURLConnection but it is not available with ios 9. Let me know If there is something wrong with my code here.</p> <pre><cod...
1
1,940
Simple PHP template class
<p>I wanted separate my HTML from PHP so after searching I found a great little php class that just do the trick. Only issue that I try merging 2 templates together but it doesn’t work.</p> <p>Here is the original class that i found from below website</p> <p><a href="http://www.broculos.net/2008/03/how-to-make-simple...
1
1,959
Bottle loading time for network server is extremely slow
<p>So i am currently working on a basic little website to run for my network. However, i am running into some problems. When i run the server, on the computer that is running the server, i can access the pages extremely quickly. However, when i try to access the same page on a different computer on my network, it loads...
1
1,681
Spring boot app - How to make database connection?
<p>I'm trying to create my first Spring Boot application and I have an issu with database connection. </p> <p>At the run, I have an </p> <blockquote> <p>java.sql.SQLException : Driver.com.musql.jdbc.Driver which return null</p> </blockquote> <p>( the complete error at the bottom)</p> <p>When I'm connecting to my ...
1
9,935
Can't run project - Android Studio 2.0 Crashlytics issues
<p>I updated Android Studio to 2.0 and trying to get instant run to work. Gradle sync works. Rebuilding the project works. Trying to run, fails :(.</p> <p>What am I doing wrong? </p> <p>Variables:</p> <ul> <li><p>io.fabric.tools:gradle:1.14.4</p></li> <li><p>com.android.tools.build:gradle:2.0.0-alpha1</p></li> <li>...
1
2,841
java.lang.NoSuchMethodError: main
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/5407250/causes-of-java-lang-nosuchmethoderror-main-exception-in-thread-main">Causes of &#39;java.lang.NoSuchMethodError: main Exception in thread &ldquo;main&rdquo;&#39;</a> </p> </blockquote> <p>I'm getting th...
1
4,787
React “Uncaught TypeError: Cannot read property of undefined”
<p>I have a icon modal component which display material google icon The idea is to send back the clicked icon (letter) from Modal.js to app.js by a callback function someFn which will change state of letter but I get Uncaught TypeError: Cannot read property 'someFn' of undefined everytime I click on an icon. I don't ...
1
7,923
Validating form using jquery
<p>I was reading a tutorial on form validation and I followed it. The form is still not validated. Please help me out. Thanks</p> <pre><code>&lt;html&gt;&lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;link href="stylesheet.css" type="text/css" rel="stylesheet"&gt; &lt;script ...
1
1,277
Rails Tests Not Found - Undefined local variable or method "response"
<p>I'm trying to follow Michael Hartl's <a href="http://ruby.railstutorial.org" rel="nofollow">Rails 3 tutorial</a> and I'm running into an error I can't find explained elsewhere. Under <a href="http://ruby.railstutorial.org/chapters/updating-showing-and-deleting-users#sec-requiring_signed_in_users" rel="nofollow">Sect...
1
3,519
Pass list of values in sqlparameter, structured perhaps
<p>Is it possible to create something like this in C# code using SqlDbCommand and SqlParameter?</p> <pre><code>DECLARE @Users TABLE (ID INT) INSERT INTO @Users VALUES (10),(20),(30) SELECT COUNT(*) FROM @Users </code></pre> <p>I tried something like this:<br> 1) DataTable creator: </p> <pre><code> private s...
1
1,211
colon in for loop in C++
<p>In the following code I am trying to edit the contents of an unordered_map:</p> <pre><code>class A { public: A() {std::cout &lt;&lt; "Constructor called, address=" &lt;&lt; this &lt;&lt; std::endl;val=1;} int val; }; void main(void) { std::unordered_map&lt;int,A&gt; um; for (int i=0;i&lt;3;i++) ...
1
1,299
Can I use MVVM without data binding?
<p>I am trying to use MVVM. Upon reading some blogs on MVVM, I found them using data binding techniques like Rx, KVO, Boxing etc. Following are my classes for validating user using MVVM. I have not put any code for data binding. What I do is simply pass the username and password from viewcontroller to my view model cla...
1
2,159
enabling auto scanning using resteasy 3.0.10 with wildfly 8.2
<p>I am trying to figure out what is my problem while setting up new Wildfly 8.2 server with simple restEasy 3.0.10 application.</p> <p>my web application is supre easy. </p> <pre><code>src/main/ java/my-package/ RootApplication.java HomePageResource.java webapp/ index.html WEB-INF/ ...
1
1,767
Can Core Domain span multiple Bounded Contexts?
<p>1)</p> <p>Evan's book, pg. 415:</p> <blockquote> <p>Also, the critical aspects of the domain model may span multiple Bounded Contexts, but by definition these distinct models can't be structured to show their common focus.</p> </blockquote> <p>a) I assume the quote is implying that <em>Core Domain</em> <str...
1
2,176
ExtJs 4.1 File Upload in Ajax fashion
<p>I have a requirement in which I need to upload a file in ajax manner using ExtJs. My form is already having many other fields like text, textarea etc. I have included my filefield in a separate form within the parent form. Also, that form have an upload button which performs the functionality while clicking on it. I...
1
1,570
Laravel blade not showing content
<p>I'm trying to <code>yield</code> in one of my <code>blade</code> files but it's not working.</p> <p>This is my <code>index.blade.php</code>:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html lang="en"&gt; &lt;head...
1
1,252
Failed to load ApplicationContext and cant create all beans
<p>I can run my project and run it with no error. But when I run test it can't.<br> I see the document and step by step.<br> I don't know where I make mistakes. </p> <p>config:</p> <pre><code>@EnableScheduling @SpringBootApplication @EnableAsync @EnableTransactionManagement(proxyTargetClass = true) @EnableCaching...
1
6,297
java.lang.Exception: WEB0113
<p>How to clear history of glass fish server 3.1.1 as i am getting this exception : </p> <pre><code>SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method java.lang.Exception: java.lang.Exception: WEB0113: Virtual server [server] already has a web module [EnterpriseApplication2-war] ...
1
1,179
NodeGroup is not joining EKS cluster when using CloudFormation
<p>I have been following this <a href="https://logz.io/blog/amazon-eks-cluster/" rel="nofollow noreferrer">guide</a> to create a <code>Kubernetes</code> cluster via <code>CloudFormation</code>, but the <code>NodeGroup</code> never joins the cluster, and I never get an error or explanation about why is not joining. </p>...
1
4,604
Creating method dynamically, and executing it
<p><strong>Background:</strong></p> <p>I want to define few <code>static</code> methods in C# , and generate IL code as byte array, from one of these methods, selected at runtime (on client), and send the byte array over network to another machine (server) where it should be executed after re-generating the IL code fr...
1
1,116
ffmpeg.exe freezes
<p>I'm using Asp.Net C# Framework 4 and currently developing a video conversion application. I'm also using ffmpeg to convert from all uploaded formats to flv. I'm first converting uploaded file to mpg and after to flv due to problems I encountered while trying conversion directly to flv from mp4 sometimes. But ffmpeg ...
1
1,398
how to add persistence xml files in spring boot
<p>I am trying to add spring boot to an existing project that i have. Earlier i had an application context xml file and 4 persistence files along with 3 separate properties files. I used <code>@ImportResource</code> feature of spring to import all the files at once in my application class below <code>@SpringApplication...
1
9,483
Creating an empty dataframe or List with column names then add data by column names
<p>I am trying to learn python 2.7 by converting code I wrote in VB to python. I have column names and I am trying to create a empty dataframe or list then add rows by iterating (see below). I do not know the total number of rows I will need to add in advance. I can create a dataframe with the column names but can't fi...
1
1,104
How to render a checkbox?
<p>I'm using Glazed lists, in a <code>jTable</code> where I have a column which is boolean. By default the <code>jTable</code> renders a checkbox where the column is type <code>Boolean.Class</code>. Using Glazed lists i cannot get the checkbox which is needed. I rendered checkboxs extending the <code>DefaultTableCellR...
1
1,403
How to solve "Graphics Device initialization failed for : d3d, sw" when running a java Jar file with JavaFx
<p>Good Afternoon everyone.</p> <p>I'm having a problem when I try to run my Java Code as a Runnable Jar file. I'm using Eclipse and I created a normal Java Project. I included the JavaFX jars as a User Libary. The Program runs without a problem when I start it with the IDE. To create the Jar file I use the the build ...
1
1,272
oozie hive action using hive metastore server with kerberos
<p>I'm using CDH5. I have set up a Hive Metastore to use kerberos. i.e. the hive-site.xml has the following properties</p> <pre><code>&lt;property&gt; &lt;name&gt;hive.metastore.sasl.enabled&lt;/name&gt; &lt;value&gt;true&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;hive.metastore.kerberos.keyta...
1
3,066
problems centos 7 httpd service restart
<p>when I type <strong>systemctl restart httpd</strong> ,</p> <p>I get the following error:</p> <pre><code>Job for httpd.service failed because the control process exited with error code. See &quot;systemctl status httpd.service&quot; and &quot;journalctl -xe&quot; for details. </code></pre> <p>en when I type <strong>...
1
1,911
Javascript to pick up values in a form text box
<p>I want to: Use Javascript to pick up the values of form fields (text inputs in form), and add them all together, spitting them out into another label or div, all when I press a button.</p> <p>Should be easy right? </p> <p>edit: i have tried a couple things, however, I didn't think about posting them. Thought some...
1
2,671
List Bullet Disappear in IE7
<h2>About</h2> <p>So this question has been asked time and time again, but I noticed something a little different; <em>see below</em>.</p> <h3>Standard Info:</h3> <ul> <li>Bullet displays in FF</li> <li>Bullet does not appear in IE</li> </ul> <h3>Finding</h3> <ul> <li>The bullet disappears when setting a hasLayout...
1
4,184
XML Extension not found even php-xml extension is installed
<p><code>sudo pecl install trader</code></p> <p>shows error like this <code>XML Extension not found</code>.</p> <pre><code>[whitebear@jp2 ~]$ sudo pecl install trader Warning: Invalid argument supplied for foreach() in Command.php on line 259 Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEA...
1
2,054
NoMethodError in UsersController#show / undefined method `key?' for nil:NilClass
<p>I've encountered an unexpected error while following Michael Hartl's <em>Rails Tutorial</em>. It had been smooth sailing.</p> <p>I first saw that I was getting a different "Action Controller: Exception caught" error than the Tutorial following the completion of <a href="http://ruby.railstutorial.org/chapters/sign-u...
1
3,120
HTML string passed in to jQuery .append() function not displaying
<p>I have an ajax call which returns the following HTML:</p> <pre><code>&lt;form action="/Function.aspx/Add" method="post"&gt; &lt;input id="Type" name="Type" type="hidden" value="Customer" /&gt; &lt;input id="CustomerId" name="CustomerId" type="hidden" value="3" /&gt; &lt;tr&gt; &lt;td&gt; ...
1
1,061
Error Number: 1096 Error Number: 1096 No tables
<pre><code>class model_trans_gc extends CI_Model{ function trans_gc_add() { $add=array( 'trans_gc_date' =&gt; $this-&gt;input-&gt;post('trans_gc_date'), 'trans_gc_no' =&gt; $this-&gt;input-&gt;post('trans_gc_no'), 'trans_gc_consname' =&gt; $this-&gt;input-&gt;post(...
1
1,644
Module not found: Error: Can't resolve '../../../vue-temp/vue-editor-bridge' in 'D:\laravel projects\codeGram\resources\js\components'
<p>i am using laravel + vuejs to do the follow and unfollow button of instagram clone , but i get this error i did everything i could, checked the config.js , deleted the module package and again run the npm install but it didnt work here is my code</p> <pre><code>&lt;template&gt; &lt;div&gt; &lt;button class=&...
1
1,159
Redis server went away always at specific point in app
<p>So we've been modifying our app to use Redis to cache some results of our ORM (custom built) and so far it seemed like it was working perfectly well until we hit a point where it always crashes on us giving us back the "RedisException: Redis server went away" with oh soooo much information to work with :)</p> <p>We...
1
7,085
Returning list from ajax and creating a list on the jsp page
<p>I am trying to show the user with a list of things when the page loads. when the page loads I do and AJAX call to the database and return a list of DTOs. In the controller I set the list of DTOs into the model and on the JSP page I try to access the list value through loop of JSTL.</p> <p>here is my code</p> <p>a...
1
1,294
Next.js - Head element doesn't work
<p>I have a quite simple Layout component that uses the <code>Head</code> component shipped with Next.js:</p> <pre><code>import React from 'react'; import { Container } from 'semantic-ui-react'; ...
1
2,654
Is repaint executing too slow?
<p>I have the following:</p> <pre><code>import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JLayeredPane; import javax.swing.JFrame; import javax.swing.BorderFactory; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import javax.swing.ImageIcon; import java.awt.GridLayout; im...
1
1,908
POST data from Arduino to website
<p>I am working on a project where I am trying to send data using HTTP and POST method from my Arduino Mega2560 to a website which I host on localhost. I am living to a students' accommodation and thus, I do not have access to the router. However, I have bought a router and have connected it to the wall via the WAN. Al...
1
1,425
Apache Storm - Could not find or load main class org.apache.storm.starter.ExclamationTopology
<p>I'm really new to maven and storm so I'm trying to follow the instructions in <a href="https://github.com/apache/storm/tree/master/examples/storm-starter" rel="nofollow noreferrer">https://github.com/apache/storm/tree/master/examples/storm-starter</a>. My current path is /home/luc/theTest/storm/examples/storm-starte...
1
1,081
spell check using google.com/tbproxy/spell
<p>I am using google spell check in my project and doing everything as suggested in the blogs but it doesn't seem to work for me. Can you please look at this and tell me what I am doing incorrect.</p> <p>In my JavaScript:</p> <pre><code>function makeRequest(parameters, svalue) { console.log("dv-- inside makereque...
1
1,567
Pandas Multiply Specific Columns by Value In Row
<p>I am attempting to multiple specific columns a value in their respective row.</p> <p>For example:</p> <pre><code> X Y Z A 10 1 0 1 B 50 0 0 0 C 80 1 1 1 </code></pre> <p>Would become:</p> <pre><code> ...
1
1,130
Nested foreach loop reading .xml and writing object to list
<p>I have a method that executes upon form_load event that seems to work properly omitting one line.</p> <pre><code>private int ReadInPeople() { XmlNodeList nodeList = m_xmlDoc.DocumentElement.ChildNodes; foreach (XmlNode PersonNode in nodeList) { Employee ccontact = new Employee(); foreach...
1
1,371
How to create a sharedPreference class in Android
<p>I am learning android and trying to figure out the best way to do a shared preference class. This is an example of a sharedPreference class;</p> <pre><code> public static final String MyPREFERENCES = "MyPrefs" ; public static final String Name = "nameKey"; public static final String Phone = "phoneKey"; pub...
1
1,094
How to map multiple columns of one table to single parent column of another table using Spring JPA using Hibernate`
<p>I want to map 3 columns of address (country, state,city) to the configuration table id column.</p> <p>I have the following table structure:</p> <p><strong>Address Model/table</strong></p> <pre><code>import java.util.Date; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persist...
1
1,029