title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How can i generate dynamic tree view in jsp using struts 1.3.10? | <p>Please help me, how can i display dynamic tree view in JSP?</p>
<p>This is my STATIC tree view:</p>
<p><img src="https://i.stack.imgur.com/EYQnO.png" alt="Static Tree View"></p>
<p>Here is coding for above output:</p>
<pre><code><li> <a href=#><span class=icon-cogs></span> Expired</a&g... | 1 | 4,456 |
Disabling autoCommit for Oracle UCP on Tomcat 6 | <p>I am using Hibernate 3.3.2 and Spring 3.2.3 on Tomcat 6. I want to use a connection pool and decided to test Oracle's UCP (for Oracle 11.2.0.4).</p>
<p>(I added edits to the end of this post because the situation changed after a few developments)</p>
<p>I cannot get rid of autocommit though. I tried configuring th... | 1 | 2,125 |
Symfony retrieve data from Array Collection | <p>In Symfony I am using a query to retrieve all questions and their relative answers from a database. Using a <code>for</code> in twig I am trying to display in a table all questions with the relative answers row by row. At the moment I am able to access and display the questions only but not the answers.
The relatio... | 1 | 1,056 |
Keep getting a 404 error using nodejs and express | <p>I'm trying to collect data from a webpage (registration form that collects user info) running on local host but when I press the submit button, I get a </p>
<blockquote>
<p>404 Error: page not found and the data from the form isn't being collected and outputted.</p>
</blockquote>
<p>I'm using webstorm with <code... | 1 | 3,140 |
Javascript - merge child objects into common parent | <p>I have an array of parent objects with nested array of children in a structure like so:</p>
<pre><code>[
{
"fullName": "Certificate",
"checked": false,
"children": [
{
"type": "Certificate",
"lastModifiedDate": "1971-01-01T00:00:00.000Z",
"fullName": "Certificate-1",
... | 1 | 1,424 |
Joi schema validation error about a need to require an optional field | <p>I am trying to validate value by <code>Joi.validate</code> along with <code>Joi schema</code>.</p>
<p>This is the schema:</p>
<pre><code>let obj = {};
for (let i=1; i<=9; i++) {
obj[i] = {
title: Joi.string().min(0).max(16),
modules: Joi.array().items(Joi.string().min(0).max(100))
};
}
module.expo... | 1 | 1,085 |
PyStan: CompileError: command 'gcc' failed with exit status 1 (macos) | <p>This is a PyStan model that I am trying to run. However, once I try to run it I come across the following error: </p>
<p>CompileError: command 'gcc' failed with exit status 1</p>
<p>Any idea how this error could be fixed on the macOS?</p>
<pre><code>counts = [0.0711, 0.125, 0.0121, 0.00513, 0.112, 0.0694, 0.0166,... | 1 | 4,585 |
Jenkins hashicorp-vault-plugin empty result | <p>I tried the Jenkins Pipeline Example mentioned here: <a href="https://plugins.jenkins.io/hashicorp-vault-plugin" rel="nofollow noreferrer">https://plugins.jenkins.io/hashicorp-vault-plugin</a></p>
<pre><code>node {
// define the secrets and the env variables
def secrets = [
[$class: 'VaultSecret', p... | 1 | 1,176 |
SDL 1.3/2.0 setting up | <p>I have been using sdl 1.2 for the past several months(On windows).I am thinking about migrating to 1.3. So I used cmake and codeblocks to create the static and dynamic libray.now I am confused how to compile the a program.I included the sdl.h header..added the static library in the linker.But when I try to compile l... | 1 | 3,822 |
LocalDate parse throws exceptions‽ | <p>I am doing the following programming exercise: <a href="https://www.codewars.com/kata/56eb0be52caf798c630013c0" rel="nofollow noreferrer">Unlucky Days</a>. The statement is:</p>
<blockquote>
<p>Friday 13th or Black Friday is considered as unlucky day. Calculate
how many unlucky days are in the given year.</p>
... | 1 | 2,376 |
How do I sum the four 2-bit bitfields in a single 8-bit byte? | <p>I have four 2-bit bitfields stored in a single byte. Each bitfield can thus represent 0, 1, 2, or 3. For example, here are the 4 possible values where the first 3 bitfields are zero:</p>
<pre><code>00 00 00 00 = 0 0 0 0
00 00 00 01 = 0 0 0 1
00 00 00 10 = 0 0 0 2
00 00 00 11 = 0 0 0 3
</code></pre>
<p>I'd like an ... | 1 | 1,303 |
Are all RAM-sections used in this linkerscript of a STM32H743 microcontroller (Cortex-M7)? | <p>I know that the RAM-memory in the latest STM32 microcontrollers contains several sections with remarkable speed differences. That's why I'm trying to wrap my head around the linkerscripts for these devices (note: <code>arm-none-eabi-gcc</code> toolchain). Unfortunately, the linkerscript generated by CubeMX for the <... | 1 | 2,996 |
How do you Tweak Xcode's auto-indentation of Objective C Parameters? | <p>Here's a snippet of code from my iOS app:</p>
<pre><code> UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Do you like my hat?"
message:@"If so, please help spread the word by rating our app now?"
dele... | 1 | 1,406 |
Edit already sent embed bot message discord.py | <p>I'm trying to edit an embed message that has already been sent (serves as a role reaction message). For example: I type "roles" and get an embed message that assigns roles when reacted to. I want to edit it to add another role in the description without sending an entirely new message. MEE6 bot is able to ... | 1 | 1,340 |
Android studio uses wrong file path to apk when I use custom build.gradle file | <p>So Im trying to use a custom build file that generates an unsigned apk then runs a task on it and then zipaligns it. I havent gotten that working yet. However I do have it creating and properly signing the apk but when I try to just push the play button to run it in debug on a device using my custom debug set up stu... | 1 | 1,489 |
TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8732 | <p>I have a wcf service application using windows service. Additionally, I have a wpf app that connects to the wcf service. I have been unable to open the wpf program. This is the error I get when I attempt to open the wpf app from Visual Studio by hitting F5 in debug mode:</p>
<pre><code>mscorlib.dll but was not ha... | 1 | 3,537 |
Webpack build issue with mobx and mobx-react | <p>I have a project that uses React and Mobx with Mobx-react.</p>
<p>My project runs perfectly fine locally. However, when built using <code>webpack -p</code>, I get a blank screen with the following error in the console:</p>
<pre><code>webpack:///./~/mobx-react/index.js?:3 Uncaught Error: Cannot find module "mobx"
... | 1 | 1,202 |
Target Unreachable, identifier 'OrderBean' resolved to null | <p>Hi i created one <code>dataTable</code> using Primefaces,and i created link to the name column of the <code>dataTable</code>. Now it should move on the next page and display its selected row contents in the next page once i click on the name link but i am getting the following error:</p>
<pre><code>javax.el.Propert... | 1 | 2,950 |
TypeError: cannot unpack non-iterable object | <p>I'm getting "TypeError: cannot unpack non-iterable User object" when doing a post command to my flask app.
I managed to manually add user to the DB. When I'm trying to create another user using the post endpoint, I'm getting the correct validation error that the email exists. But when I'm trying to post a new one, I... | 1 | 2,221 |
Microsoft.Practices.ServiceLocation.ActivationException was unhandled by user code | <p>I am working on migrating the current ASP.NET application from 2.0 to 4.0 and also trying to migrate the enterprise library to 5.0 from 4.0</p>
<p>I have made all the necessary changes in the configuration file. All the application is working on project mates machine but it is not working on my machine. </p>
<p>St... | 1 | 4,869 |
Using camel to aggregate messages of same header | <p>I have multiple clients that send files to a server. For one set of data there are two files that contain information about that data, each with the same name. When a file is received, the server sends a message out to my queue containing the file path, file name, ID of the client, and the "type" of file it is (all ... | 1 | 1,282 |
Android activity error 5 | <p>Good day for all the guru's of developing here, first of all, sorry for my bad english but I have an error in a Android app that I'am developing and I couldn`t fix it, and I google it and don't find any answer.</p>
<p><strong>The logcat</strong></p>
<pre><code>09-28 13:21:59.360 2085-2085/com.colpsic.domain.col... | 1 | 5,137 |
jQuery IE7 problem (using jQuery Cycle plugin) | <p>I can't get jQuery working at all with IE7. I'm using the jQuery Cycle plugin, but I believe this problem is with jQuery (and the fact that I'm am a newbie). I'm trying to use an banner rotator, which works on Firefox, Safari and IE8. On IE7, it is not even activating... it just shows each div one after another.</p>... | 1 | 1,443 |
PHP/mySQL Export to CSV but ONLY user selected date range data | <p>i'm stumped and could use some much appreciated help figuring this out.</p>
<p>basically, i've got a page that displays data from a mysql database.</p>
<p>i have a simple text link to export all the data to a CSV file that downloads.
that code is...</p>
<pre><code><a href="log_activity-export2CSV.php?id=<?p... | 1 | 1,364 |
BrowserLink does not work for ASP.NET Core on Visual Studio 2017 RTM | <p>I get the following error in the browser when I enable BrowserLink for my ASP.Net Core 1.1 application and I think because of that the BrowserLink does not work. </p>
<pre><code>Browser Link: Exception thrown when trying to invoke Browser Link extension callback "microsoft.visualstudio.web.browserlink.sourcemapping... | 1 | 2,320 |
Using mod_filter instead mod_deflate, the .htaccess way | <p>I've a Wordpress site running in a VPS but it's extremely slow, take a look <a href="http://elclarinweb.com" rel="nofollow noreferrer">here</a>. This what I've in <code>.htaccess</code> file:</p>
<pre><code># BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^inde... | 1 | 3,999 |
.NET Core 2 with EF Core different contexts with different schemas in same DB(SQL Server) | <p>I would like to have my tables in a C# ASP.NET Core 2 application in two separate schemas. I have created two separate DB contexts and different connection strings in <code>appsettings.json</code>. </p>
<p>appsettings.json </p>
<pre><code>"DefaultConnection": "Server=db;Database=DB;User=u;Password=pwd;",
"Invento... | 1 | 1,663 |
Connecting Java with Microsoft Access using ucanaccess | <p>When I try to access the insert in the existing database using ucanaccess, it's shows a mean error like this:</p>
<pre><code>Exception in thread "main" net.ucanaccess.jdbc.UcanaccessSQLException: user lacks privilege or object not found: L
at net.ucanaccess.jdbc.UcanaccessStatement.executeQuery(UcanaccessSt... | 1 | 1,746 |
Drupal AJAX callback only getting called once | <p>I'm trying to make a form in Drupal, so more than one element can be added to a form. For example, a page might contain data for an event, then the event might have multiple dates. So I have a form that looks like:</p>
<pre><code>/**
* Implements hook_form_alter().
*/
function addextra_form_alter(&$form, &... | 1 | 1,144 |
WCF design_time_address not displaying within visual studio 2010 | <p>I currently have a wcf service library project that includes my service contract & implementation. If I were to go to a web project within the same solution and add a service reference and click on the discover button, I can see my service listed as <a href="http://..design_time_address/myservice" rel="nofollow"... | 1 | 2,305 |
Ios-deploy install doesn't work - macOS High Sierra (10.13.5) | <p><strong>Command line arguments</strong> than I used for ios-deploy.</p>
<blockquote>
<p>sudo npm install -g ios-deploy --unsafe-perm --allow-root</p>
</blockquote>
<h1>Expected behavior</h1>
<p>Install ios-deploy global via NPM</p>
<h1>Actual behavior.</h1>
<p>Ios-deploy not installed and get the error 65:</p... | 1 | 1,169 |
What are the steps to create a radar chart in Bokeh python? | <p>Objective: to create a radar chart within Bokeh python</p>
<p>To be helpful this is the chart type I am after:
<a href="https://i.stack.imgur.com/w90I5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w90I5.png" alt="enter image description here"></a></p>
<p>I obtained <a href="https://matplotlib... | 1 | 2,622 |
Python multiprocessing: Start/stop processes on server | <p>I am building an algorithmic trading platform using Python. Multiple algorithms are monitoring the market and execute trades accordingly daily from 09:30 to 16:00.</p>
<p>What I'm looking for is to start and stop algorithms arbitrarily from a client. Therefore I want to have a server script running using <code>mult... | 1 | 1,825 |
Start and Stop mysql through java | <p>I want to start and stop <code>mysql</code> through java program. I tried solution from <a href="https://stackoverflow.com/questions/9990788/start-or-stop-mysql-database-using-java-programming">this</a> question, but it failed to start the mysql. Then I tried using other commands as below:</p>
<pre><code>private st... | 1 | 1,111 |
Mongodb java driver- java.net.SocketException: Connection reset | <p>We have a replication setup with a primary, secondary and arbiter node running mongodb community server v3.4.16.</p>
<p>We are using jasperserver to generate 100+ reports from mongodb database.</p>
<p>Recently we have started facing connection reset problems while connecting to mongodb server due to which reports ... | 1 | 1,809 |
How to shrink an image size? | <p>Hello I am working on a program to shrink a 640x480 bit map image into a 320x240 image. I have been researching the issue for a while now but all the good examples i have found have been for increasing the size of an image.</p>
<p>(See here:<a href="http://cboard.cprogramming.com/c-programming/154737-help-program-r... | 1 | 2,833 |
Blazor. How can I get current url in the Startup class (method ConfigureServices)? | <p>I am using AspNetCore.Identity.LiteDB. The database name depends on hostname. I am trying to get hostname using NavigationManager but it seems in the Startup.ConfigureServices it is not initialized.</p>
<pre><code>public void ConfigureServices(IServiceCollection services)
{
// Server Side Blazor doesn't ... | 1 | 1,036 |
How to set the size of a gridlayout jpanel | <p>I'm trying to set the size of a gridlayout jpanel. Here is the code:</p>
<pre><code>JFrame myFrame = new JFrame();
myFrame.setLayout(new FlowLayout());
myFrame.setLocation(400, 100);
myFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
JLabel jlMins = new JLabel("Number of minute... | 1 | 1,244 |
Kibana deployed to kubernetes cluster returns 404 | <p>I have kibana deployed to kubernetes cluster as StatefulSet. However, when pointing my browser to the kibana, it returns {"statusCode":404,"error":"Not Found","message":"Not Found"}. Any advice and insight is appreciated. Here is the log that I see in the pod when accessing the application at the browser using <a hr... | 1 | 1,527 |
specFlow error : ScenarioTearDown threw Object reference not set to an instance of an object excetion | <p>I am facing the issue in specflow scenario testing as follows.</p>
<p>1.It is Throwing exception in Tear Down method as Object reference not set to an instance of the object.<br>
2.Which is resulting in the test failure although test passes successfully. </p>
<p>plz help.</p>
<p>Following is the feature.cs fil... | 1 | 1,580 |
Keep modal open after validation redirect | <p>i am currently working on a project where the login/register is handled through modal boxes (so i click the login button and a nice modal reveals with a form in).</p>
<p>Im using foundation 5's reveal modal to house my login form but when the form is submitted and theres a validation error the modal closes. The rea... | 1 | 1,522 |
MPGS integration 3DSecure PHP | <p>I've downloaded the <a href="https://test-gateway.mastercard.com/api/documentation/downloads/index.html?locale=en_US" rel="nofollow noreferrer">Direct Payment</a> Sample_REST-JSON_PHP.zip . I successfully integrated with my merchant info, but when doing the pay operation in <code>x_pay_simple.html</code> I get the f... | 1 | 7,255 |
Woocommerce ajax remove from cart and update cart data returns zero | <p>I am trying to minus a product or remove a product from cart.Suppose i have 3 same item in cart and i want to minus one but the ajax i used not works.I returns zero on console log.I thing this zero is from wp die().But it is expected to return some data.</p>
<h2>Below is my codes in functions.php</h2>
<pre><code>a... | 1 | 1,255 |
Change the menuItems look | <p>Currently I have a menu which looks like the image below.</p>
<p><img src="https://i.stack.imgur.com/fOoLp.jpg" alt="enter image description here"></p>
<p>I want to get rid of the white bounding box so that it looks like the image below.</p>
<p><img src="https://i.stack.imgur.com/HKZnT.jpg" alt="enter image descr... | 1 | 1,681 |
Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 seconds | <p>I've created a Switch in <code>Hyper-V Manager</code> : </p>
<pre><code>Virtual Switch Manager (on the right) => New Virtual Network Switch => External => MinikubeSwitch
</code></pre>
<p><a href="https://i.stack.imgur.com/nMTDf.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nMTDf.gif"... | 1 | 5,243 |
ReferenceError: Users is not defined | <p>This is a very specific question, but I really don't know what is causing the error. I have the following code:</p>
<pre><code>router.get('/user/profile', passport.authenticate('jwt', { session: false }), function(req, res, next){
// Something
});
</code></pre>
<p>When I access the route it goes through my passpor... | 1 | 1,865 |
Using Shopify API to create product in PHP | <p>Thanks a lot for your solutions. I am using Shopify API along with PHP CURL POST Method to create product. The following is the code and output. </p>
<pre><code>$products_array = array(
"product"=>array(
'title'=>'',
"title"=> "Burton Custom Freestlye 151",
"body_html"=> "<... | 1 | 1,218 |
Implementing Swipe refresh for RecyclerView in android | <p>I want to refresh the <code>RecyclerView</code> each time I swipe down. So I use <code>SwipeRefreshLayout</code> but now also I am not able to refresh my <code>RecyclerView</code>.
Below is the code that I had written:</p>
<p>Below is my XML file named:fragment_static.xml</p>
<pre><code><?xml version="1.0" enco... | 1 | 2,821 |
Passing by reference: child of multiple interfaces | <p>I'm getting build errors when passing an object that implements multiple interface to a function that requires only one of the interfaces. </p>
<p>I'm developing a communication package.
The package has a Receiver class and a Sender Class. The Receiver class uses a notification interface Receive_Notifier (functio... | 1 | 1,299 |
Get value of databound cell in GridView | <p>I have been trying this out for a while now and can't seem to figure it out. I can extract the controls in the gridview fine, but I need to get the values of the databound cells in the GridView, and cant seem to find out how. Here is my code:</p>
<p>Webpage:</p>
<pre><code> <asp:GridView ID="ReceiverPanel" runa... | 1 | 1,199 |
ASP.NET MVC not saving to the database? | <p>I'm trying to save my model to my database. I have my model set up and filled in the methods in the associated controller. When I run my web application and go through the create forms, it lets me click and does not give me any error, but it does not save anything to the database. Here is how my model looks.</p>
<p>... | 1 | 1,552 |
Why does starting my Spark Streaming application give "Container exited with a non-zero exit code 50"? | <p>When I execute my Spark code in the cluster, the line <code>info.foreachRDD(rdd => if (!rdd.isEmpty()) rdd.foreach(a => println(a._1)))</code> generates an error message (see below).
What am I doing wrong and what does the error message indicate?</p>
<pre><code>val info = dstreamdata.map[(String, (Long, Long,... | 1 | 5,246 |
Hashcode() Vs Equals() | <p>I have below this two classes ..</p>
<pre><code>class Emp //implements Comparable
{
String name,job;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getJob() {
return job;
}
public void setJob(S... | 1 | 2,044 |
Improve performance on LINQ Query | <p>My linq query goes slow when I try to loop through the results to create an Xelement, which I later process XSLT based on the XElement. </p>
<p>Here is my code</p>
<pre><code>public override XElement Search(SearchCriteria searchCriteria)
{
XElement root = new XElement("Root");
using (ReportOrde... | 1 | 2,525 |
JSP not finding property in bean | <p>My JSP gives an error showing that it is not able to find a property in a DTO and yet in the DTO the property is really there. Below is the error:</p>
<pre>
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org... | 1 | 4,864 |
CosmosDB Query Performance | <p>I wrote my latest update, and then got the following error from Stack Overflow: "Body is limited to 30000 characters; you entered 38676."</p>
<p>It's fair to say I have been very verbose in documenting my adventures, so I've rewritten what I have here to be more concise.</p>
<p>I have stored my (long) original pos... | 1 | 6,916 |
getElementById with variable | <p>I want to use a variable with getElementById, but it just returns:</p>
<pre><code>Uncaught TypeError: Cannot read property 'style' of null
</code></pre>
<p>My code looks about that</p>
<pre><code>document.getElementsByClassName("right").onclick = function() {
score++;
score2++;
document.getElementsBy... | 1 | 2,247 |
clang++ in CLion Windows, how to run with MinGW--w64 instead of Windows VC? | <h1>What I have</h1>
<ul>
<li>Windows 10 x64</li>
<li>MinGW-w64 toolchain 7.3.0, 32+64, 64bit version set in PATH</li>
<li>CLang Windows distribution 6.0.0, 32+64, 64bit version set in PATH</li>
<li>CLion 2018.1 & built-in cmake</li>
<li>Set CMake preference inside CLion <a href="https://intellij-support.jetbrains... | 1 | 1,618 |
Removing a filter added by a Class from a plugin | <p>I have a plugin that is running on all post and pages and I want to remove it from the content on a custom template I created for <em>Thank you</em> pages.</p>
<p>I printed out all the filters that are added to the content and the one I want to reference is as follows</p>
<pre><code>[18de263ad73c07944f622a52d10d6e... | 1 | 1,387 |
jquery bind datepicker to ajax loaded content | <p>I'm binding the jquery datepicker to an input field. This works fine with static context. But if I reload parts of the page with ajax, call again the bind method, then the newly loaded content is not found, and thus I can not bind my datepicker to the newly loaded fields.</p>
<pre><code><script type="text/javasc... | 1 | 1,180 |
Upload file to remote folder from local folder using SFTP | <p>Am trying to upload file to remote folder from local folder.But am getting an error, I don't know where I made a mistake. I hope someone helps to find the solution. Thanks.</p>
<p>The code given below:</p>
<pre><code>public static void main(String[] args) {
String server = "www.xyz.com";
int port =... | 1 | 1,323 |
Cygwin is executing commands very slowly on XP. What could it be? | <p>My question is similar to</p>
<ul>
<li><a href="https://stackoverflow.com/questions/6811435/why-does-cygwin-execute-shell-commands-very-slowly">Why does Cygwin execute shell commands very slowly?</a></li>
<li><a href="https://stackoverflow.com/questions/7533806/cygwins-bash-became-extremely-slow-after-errors">Cygwi... | 1 | 1,835 |
Webview inside a View pager in android | <p>I have a <code>WebView</code> at the bottom of view in <code>ViewPager</code>... When I slide through the items of <code>ViewPager</code>. The View moves on down. (I guess the focus goes to webview)
I am not sure whether this is due to <code>WebView</code>.
Loading the webview with html data using
<code>webView.loa... | 1 | 4,173 |
Android GridView flip animation on each cell? | <p>I am fairly new to android development and i'm creating a few simple applications for myself.
I have ran into a problem in relation to animations, in particular a flip animation on each individual cell of a gridview when that cell is clicked.</p>
<p>What my application does so far is retrieves the contacts from the... | 1 | 5,658 |
How to retrieve a specific object with Parse.Query | <p>I am using Parse to create a WebApp and I am trying to get an instance of an object <code>Product</code>with this code:</p>
<pre><code>getProduct: function() {
var productClass = Parse.Object.extend("Product");
var query = new Parse.Query(productClass);
var result = query.get(productId, {
s... | 1 | 1,373 |
Data binding in recylerview adapter android? | <p>I want to bind data to my recylerview adapter. This is my current code following the MVVM pattern</p>
<p>Fragment </p>
<pre><code>class NotificationFragment : Fragment() {
var customeProgressDialog: CustomeProgressDialog? = null
private val appPreferences: AppPreference by inject()
private val notificationViewMode... | 1 | 3,303 |
How to use Python to measure speed of bike like a digital speedometer, using a Raspberry Pi? | <p>I am working on a project using a Raspberry Pi and done code in Python. My project is to measure the distance from all side of bike and speed of bike. I am able to measure distance using an ultrasonic sensor, but trying to measure speed using hall effect sensor but I am getting abnormal speed readings.</p>
<p>For i... | 1 | 3,396 |
IllegalArgumentException for JSF view while loading page | <p>Even I am trying to open simple JSF page it is throwing exception, I am not getting even single hint what is wrong with the code.</p>
<p>i have xhtml like this</p>
<p><p>
</p>
<pre><code> <table border="0" bordercolor="red" width="100%" cellspacing="0"
cellpadding="0">
<tr>
... | 1 | 9,566 |
Taking picture with EDSDK and retrieving it immediately | <p>For few days I've tried to retrieve the taken picture from camera. Today I found</p>
<pre><code>EdsSetPropertyData(cRef, PropID_SaveTo, 0, 4, 2);
</code></pre>
<p>which doesn't save the picture to camera. But my problem is currently that I can't retrieve image from camera. My ObjectEventHandler will never be calle... | 1 | 2,177 |
Replace one fragment with another, go back to previous fragment on toolbar back button press | <p>I have two fragments.</p>
<p>The first fragment has a <code>Button</code> view that, on click, should open the second fragment. The title of the toolbar should change between the two fragments (from "First Fragment" to "Second Fragment"). The second fragment should have a "back button" (arrow left icon) in the tool... | 1 | 2,464 |
Spring Boot 2 - 403 instead of 401 in filter-based JWT Spring Security implementation | <p>I'm trying to make my Spring Boot 1.5.x REST API project 2.x.x-compatible, without breaking lots of code. I'm stuck in a filter-based JWT Spring Security implementation I used to use:</p>
<p>In order to authenticate credentials through "/login" endpoint, I used to extend <code>UsernamePasswordAuthenticationFilter</... | 1 | 1,766 |
OAuth2 spring example sparklr and tonr | <p>I'm trying to get the example of tonr and sparklr working for the framework spring. I am running into errors with maven. This is where I'm getting the source code from <a href="https://github.com/spring-projects/spring-security-oauth" rel="nofollow">https://github.com/spring-projects/spring-security-oauth</a> and ... | 1 | 11,121 |
WPF MVVM Pagination | <p>I have a user control for pagination view, it has its own viewmodel. I added the pagination in a page with a datagrid that also has a separate viewmodel.</p>
<p>My question is how can I update the ObservableCollection I have in my page viewmodel every time a command is done in my pagination viewmodel?</p>
<p>Here'... | 1 | 3,928 |
Bootstrap Selectpicker not working on a global modal | <p>I made a global modal with this </p>
<pre><code><div id="GlobalModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<style>
#GlobalModal .modal-body .body-content {
margin:0;
width: 100%;
}
</style>
<!-- Modal content--&g... | 1 | 1,870 |
Web response in C# .NET doesn't work more than a couple of times | <p>I am developing an application using twitter api and that involves writing a method to check if a user exists. Here is my code:</p>
<pre><code> public static bool checkUserExists(string user)
{
//string URL = "https://twitter.com/" + user.Trim();
//string URL = "http://api.twitter.com/1/users/s... | 1 | 1,176 |
Django REST framework queryset object has no attribute pk | <p>I am building a larger Django-based web app, but I have a blocking issue with an API view that should return some data.</p>
<p>I the application I have a model (<code>mail.models.Message</code>) and a matching serializer and viewset.</p>
<p>For a reporting feature, I need to get filtered set of results and have th... | 1 | 2,717 |
Bind data to DB::raw() in Laravel | <p>I wrote a query in raw SQL that pulls all records in a given date range, counts the records based on the day and hour they were inserted, and calculates the hours since the "start date" they were inserted.</p>
<p>I'm now attempting to stuff that query into Laravel. The problem I ran into was that I needed a few thi... | 1 | 1,780 |
"java.lang.IllegalStateException: Cannot forward after response has been committed" in Grails | <p>I have a Grails 2.2.4 application running. The application does some image uploading tasks and shows the uploaded images in a list. Everything works fine, but sometime I get the error below. I googled after that but I could not find a proper answer. I cannot find the how the error belongs to my code. </p>
<p>Someti... | 1 | 2,426 |
Maven doesn't install everything from the pom file resulting in "Missing Required Library" x 124 | <p>My pom.xml looks as follows:</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>... | 1 | 2,530 |
Android: RecyclerView, Drag-and-Drop (External View), and Auto-Scroll? | <p>Here is an image of what I am trying to do: </p>
<p><a href="http://i.stack.imgur.com/vJUfH.png" rel="nofollow">Image: Drag-and-drop app with a list and an item outside the list</a></p>
<p>I am trying to make an explorer-like file browser, with drag-and-drop to move the files, but I run into a problem. </p>
<p>I... | 1 | 3,435 |
JSP - Javascript form validation with jsp pages | <p>I developed a mvc 2 servlet application for a website.</p>
<p>Everything works. But the Javascript form validation doesn't.</p>
<p>Here is the code of the jsp. </p>
<pre><code><%@page import="collaboration.Modello"%>
<%@page import="collaboration.Utente"%>
<%@page import="java.util.List"%>
<%... | 1 | 3,730 |
Unable to load AWS credentials from any provider in the chain in Docker EC2 env | <p>I have dockerized a Java spring-boot(v1.4.2) application which uses Amazon SQS (via spring-cloud-starter-aws-messaging v1.1.3 which pulls in aws-java-sdk-sqs v1.11.18). Now to provide the application access to AWS i'm following this pattern: </p>
<pre><code> @Bean
public AmazonSQSAsync amazonSQSAsync() {
... | 1 | 9,678 |
Precision recall in lucene java | <p>I want to use Lucene to calculate Precision and Recall.</p>
<p>I did these steps:</p>
<ol>
<li><p>Made some index files. To do this I used indexer code and indexed <code>.txt</code> files which exist in this path <code>C:/inn</code> (there are 4 text files in this folder) and take them in "outt" folder by setting ... | 1 | 1,665 |
Method not found: 'System.Reflection.MethodInfo Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.get_SelectAsyncMethod()' | <p>People I need help I am in a new project in which I am implementing identity server 4 and I am trying to recover the previously created users with asp.Identity that I have in my database to be able to verify when I make an external login from identity server 4. Sorry my english.
My Startup.cs</p>
<pre><code>public ... | 1 | 2,063 |
How can I style django forms with bootstrap CSS? | <p>I've written a form class in django, and while trying to output it, found that it is not beautiful to look at.</p>
<pre><code>class AddAppointmentForm(forms.Form):
docchoices = []
for doc in doctor.objects.all():
docst = [doc.docid, doc.name]
docchoices.append(docst)
# CHOICES = [('selec... | 1 | 2,146 |
Pointer to a C-String? | <p>For an intro to CS assignment, I am writing a C++ program in Visual Studio 2010 which returns an integer and accepts a pointer to a C-string as an argument. I know that I need to make a function besides an int main to succeed, but I am not exactly sure about how to initialize a char pointer array which points to a p... | 1 | 1,049 |
DESCRIBE with LIMIT in spark sql | <p>I am using the <code>DESCRIBE</code> keyword to get column information about a temp view. It's a useful method however I have a table for which I'd only like to describe a subset of the columns. I'm trying to use <code>LIMIT</code> in conjunction with <code>DESCRIBE</code> to achieve this but can not figure it out.<... | 1 | 1,145 |
Compiling a c++ program using thrift and cassandra | <p>I was trying to compile a simple example for connecting to a cassandra instance using the thrift interface. As a note, I am doing all of this without access to super user privileges on a linux machine. </p>
<p>I installed thrift and the c++ generator, put the include headers on my CPLUS_INCLUDE_PATH variable, and t... | 1 | 2,470 |
WCF Service returns 400 Bad Request | <p>I've got this application that works locally and when deployed and using a .mdf SQL Express database file (which I usually use for testing purposes). However, when I change it to work with our SQL Server 2008 the app works but the service doesn't.</p>
<p>For example if in my code behind of a page I have a button th... | 1 | 1,024 |
Ionic 2 modify a variable in app.js from child page | <p>Hi I am learning Ionic 2 and I have a requirement to change a variable in Ionic 2 app.js which is the root controller I believe. </p>
<p>I started a new app using </p>
<p>ionic start myApp tutorial --v2</p>
<p>and this is my app.html</p>
<pre><code><ion-menu id="leftMenu" [content]="content">
<ion-con... | 1 | 1,491 |
Apollo Client - How to test a component that uses multiple queries, using HOC components that use compose | <p>I am reading over the docs for testing React/Apollo components <a href="https://www.apollographql.com/docs/react/development-testing/testing/" rel="nofollow noreferrer">Link</a>. If the component has one query, it seems pretty simple to test it.</p>
<pre><code>const mocks = [
{
request: {
query: GET_DOG_... | 1 | 1,283 |
Chat application using jms spring and activemq queue | <p>So here is my problem... big problem</p>
<p>I have class called Startup which contains my main method which calls client class, and Client class creates a window, ChatListener for listening to the messages</p>
<p>Now, I need to run the Startup two times(not only two more than two actually) and perform chat operati... | 1 | 2,417 |
ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain | <p>I try to use selenium(latest version, chrome version 58) with <code>org.openqa.selenium.chrome.ChromeDriver</code>. This class has documentation which appears in eclipse. It includes simple test:</p>
<pre><code>import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.AfterClass;
i... | 1 | 1,169 |
how to log with Spring AOP and SPring boot | <p>i use the same class LoggingAspect as in this example tutorial <a href="https://www.javaguides.net/2019/05/spring-boot-spring-aop-logging-example-tutorial.html" rel="nofollow noreferrer">https://www.javaguides.net/2019/05/spring-boot-spring-aop-logging-example-tutorial.html</a>, but when i call a controller methode ... | 1 | 2,675 |
C# Pcap.Net Send TCP, HTTP Packet not work | <p>I will using Pcap.Net 0.10.0 (67076) for send TCP or HTTP packet but not work, only work with UDP Packet?? I can see UDP Packet showing in TCPViewer but now show with TCP or HTTP packet.</p>
<p>I using windows 7 64bit but i really build application x86 platform.</p>
<p>Here is my code.
</p>
<pre><code>using Syste... | 1 | 2,004 |
%jdbc(hive) - Could not open client transport with JDBC Uri | <p>I'm trying to run some hive queries using JDBC driver on Zeppelin.</p>
<p>When I run this command, <code>%jdbc(hive)</code> </p>
<p>I get following as the response error.</p>
<pre><code>java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000: java.net.ConnectExceptio... | 1 | 1,082 |
How to make a simple pie chart using Kendo UI ASP.NET MVC using Entity Framework? | <p>I am very new to Kendo UI let alone telerik. I have been trying to make a pie chart from my model class using Kendo ui Q3 but am failing and i can find a good example, or a tutorial.</p>
<p>Am stuck and frustrated because i thought it was going to be very easy but it is not the case... please help.</p>
<hr>
<p>Th... | 1 | 1,032 |
JavaScript navigation menu multiple onclick | <p>I am getting in touch with javascript and just having problem with multiple onClick attribute. I already have some code but it seems to be easier and neater way to solve an issue.</p>
<p>I would like to have navigation menu which hyperlink background gets a color onClick and blog div changes its content. Also if yo... | 1 | 1,372 |
Error after build when running JOGL Tutorial | <p>I'm trying to figure out how to program OpenGL in Java, but when I ran the tutorial <a href="https://sites.google.com/site/justinscsstuff/jogl-tutorial-2" rel="nofollow">here</a>, with all the libraries loaded (I think) correctly, as it was able to import the libraries, it gave me this weird error:</p>
<pre><code>"... | 1 | 3,434 |
@babel/plugin-proposal-class-properties doesn't work | <p>I have such a project structure:</p>
<pre><code>/main-folder
/apps
/app — // I want to import "project-b" here
/node_modules
/public
/src
|app.js
|app.css
|.babelrc
|package.json
|package-lock.json
|webpack.config.js
/static
/project-b — // Pro... | 1 | 1,526 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.