title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
IllegalStateException: Cannot convert value of type to required type | <p>Here's the error I'm receiving.</p>
<pre><code> Caused by: java.lang.IllegalStateException: Cannot convert value of type [code.ProductFieldSetMapper] to required type [org.springframework.batch.item.file.mapping.FieldSetMapper] for property 'FieldSetMapper': no matching editors or conversion strategy found
at... | 0 | 1,697 |
rails devise 401 unauthorized for a specific page | <p>I'm having trouble discerning why my app is returning a 401 Unauthorized. Other actions in my Institutions controller are working just fine while not signed in. However, this and another page are returning 401. If logged in, these pages work perfectly fine, but they shouldn't require being logged in. I have even gon... | 0 | 4,963 |
Python - linear regression TypeError: invalid type promotion | <p>i am trying to run linear regression and i am having issues with data type i think. I have tested line by line and everything works until i reach last line where i get the issue TypeError: invalid Type promotion. Based on my research i think it is due to date format.<br>
Here is my code:</p>
<pre><code>import panda... | 0 | 1,331 |
nusoap codeigniter webservice server and client | <p>I am new in webservice, and have been looking in how to create web service, at the moment, I think I somehow manage to make one but it does not return any result. I am using nusoap and also Codeigniter.</p>
<p>The WebService Server is in an application called <code>WebServiceTester</code></p>
<p>below is the code ... | 0 | 1,263 |
Make raster stack with different extent | <p>I am in trouble making raster stack which have slightly different extent. The answer (1st one) given <a href="https://stackoverflow.com/questions/31114542/bring-rasters-to-same-extent-by-filling-with-na-in-r">here</a> is useful but did not help in my case. For example, I want to make a raster stack using <a href="ht... | 0 | 1,712 |
Getting URL Parameters on GatsbyJS | <p>Is there a way to retrieve url parameters passed on pages of project built on GatsbyJS?
I'm trying to implement a password reset function on my page using AWS, but they can only send the parameters through a link sent to the user's email.</p>
<p>So the flow would be like this :</p>
<p>User triggers Forgot Password... | 0 | 6,305 |
Java spring controller is not being mapped | <p>I have a spring web application, which has few controllers. My problem is that while trying to redeploy .war to tomcat (or simply restarting application) controllers aren't being mapped from the first try. I have to redeploy app or restart again until they are finally mapped...I have no idea why this is happening.</... | 0 | 2,546 |
ProgressDialog : how to prevent Leaked Window | <p>I'm using ProgressDialog to prevent the user from interacting while the device is downloading stuff from internet.</p>
<p>everything was working fine until my client managed to produce this bug : </p>
<pre><code>"07-06 17:10:50.363: ERROR/WindowManager(8821): Activity android.pixelrain.framework.PixelRainActivity ... | 0 | 1,873 |
How to post a feed item in friend's wall via Graph API | <p>I am making a very simple gift application on Facebook. The main problem here is how to notify the user which don't use the application about the fact that his friend send him a gift?</p>
<p>As the Notifications are disabled on old REST API and <code>stream.publish</code> will not work on the friends who didn't aut... | 0 | 1,199 |
Error trying to diff '[object Object]'. Only arrays and iterables are allowed | <p>I am getting the following error </p>
<blockquote>
<p>"<strong>ERROR Error: Error trying to diff '[object Object]'. Only arrays
and iterables are allowed</strong>" during runtime.</p>
</blockquote>
<p>I am consuming a JSON response and attempting to display it in the UI in tables format. please find the attach... | 0 | 1,738 |
OpenCV camera orientation issue | <p>I have a simple project that just show the camera with org.opencv.android.JavaCameraView.</p>
<p>my problem is that in default the camera is on landscape mode and I can't change this cause I need to define CameraBridgeViewBase instead of a regular camera intent.</p>
<p>this is a part of my code:</p>
<p>XML code:<... | 0 | 2,314 |
How to trigger rerender on test component? | <p>I am testing this connected component:</p>
<pre class="lang-js prettyprint-override"><code>export class ExclusiveSelectboxesFormSectionView extends React.Component<Props> {
handleSelection = (field: Field, message: string) => {
this.props.setCard({ message, field });
};
cancelSelection = () =>... | 0 | 1,317 |
How do I implement minimum 5 characters validation in this ant design login form ? I cant find the examples | <p>I looked at all the examples of ant.design form but cant find the validation for minimum length for the textboxes. can u please help?</p>
<p><a href="https://ant.design/components/form/?locale=en-US#header" rel="noreferrer">https://ant.design/components/form/?locale=en-US#header</a></p>
<p><a href="https://codesan... | 0 | 1,180 |
Cannot convert #{ad.userid} of type class java.lang.String to class javax.faces.component.UIComponent | <p>I am getting home page, but when going to a JSP page which has a <code>h:inputText</code> I am getting the following error:</p>
<pre>
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.el.JspELException: /login.jsp(21,0) '#{ad.userid}' Cannot convert #{ad.userid} of type c... | 0 | 1,428 |
Python parsing class from YAML | <p>I am trying to output and then to parse back from YAML the following</p>
<pre><code>import numpy as np
class MyClass(object):
YAMLTag = '!MyClass'
def __init__(self, name, times, zeros):
self.name = name
self._T = np.array(times)
self._zeros = np.array(zeros)
</code></pre>
<p... | 0 | 1,145 |
how to use software codec in android using mediacodec | <p>In my i want encode yuv data into h264 using mediacodec software codec.</p>
<p>I use Google software encoder <strong>OMX.google.h264.encoder</strong> </p>
<p>when i use hardware encoder[OMX.qcom.video.encoder.avc] that time it work but when i use software encoder[OMX.google.h264.encoder] it not encode file.it will... | 0 | 1,504 |
Export R Shiny Page to PDF | <p>I have a large Shiny application that has a number of prompts, then generates tables and plot based on those inputs. I don't use rmarkdown or knitr or anything to format the output. I just use the standard Shiny elements (sidebarPanel, mainPanel, etc.). For the plots and tables I use the standard reactive renderPlot... | 0 | 1,174 |
How can I install pyv8 in Ubuntu 14.04? | <p>I installed the <code>libv8</code> and <code>libboost-all-dev</code> Ubuntu packages, then ran </p>
<pre><code>sudo pip install pyv8
</code></pre>
<p>And got:</p>
<pre><code>building '_PyV8' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -f... | 0 | 3,016 |
Useful example of a shutdown hook in Java? | <p>I'm trying to make sure my Java application takes reasonable steps to be robust, and part of that involves shutting down gracefully. I am reading about <a href="http://www.ibm.com/developerworks/ibm/library/i-signalhandling/?open&l=409,t=grj,p=jsh#9" rel="noreferrer">shutdown hooks</a> and I don't actually get h... | 0 | 1,024 |
How to remove the web address from graph in HTML | <p>I am creating a graph in HTML. I am using the API amCharts, but the problem is that it shows the text "amchart" within the graph. </p>
<p>How can I remove that text so that it may look OK?</p>
<pre><code><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
... | 0 | 1,274 |
YouTube API not working with iPad / iPhone / non-Flash device | <p>This piece of code works great in DESKTOP browsers (code courtesy of @Rob-W), click the thumbnail and the adjacent video will start playing, using YouTube's API.</p>
<p>HTML
</p>
<pre><code><div id="tabs2">
<div>
<img class='thumb' src='http://i2.cdnds.net/11/34/odd_alan_partridge_bio_cover.... | 0 | 2,046 |
Error while extracting DatabaseMetaData; nested exception is com.mysql.jdbc.exceptions.jdbc4. No operations allowed after connection closed | <p>I have a scheduled task running every 20 minutes which was configured through "@Scheduled(cron = "0 0/20 * * * ?")" based on spring boot. During this task, I need to search some data from mysql and then save them into redis. The following are my configure of database:</p>
<pre><code>mybatis.configuration.map-unders... | 0 | 6,872 |
How to read Meta data in gRPC using Java at client side | <p>I am using Java and Protoc 3.0 compiler and my proto file is mention below.
<a href="https://github.com/openconfig/public/blob/master/release/models/rpc/openconfig-rpc-api.yang" rel="noreferrer">https://github.com/openconfig/public/blob/master/release/models/rpc/openconfig-rpc-api.yang</a></p>
<pre><code>synta... | 0 | 5,335 |
Java can't get the path of a file that exists in the current directory | <p>If a file exists in the same directory where a Java application is running and I create a File object for that file the Java File methods for the path of the file include the filename as well. Code and output are below.</p>
<p>If this was a bug in the JDK version I'm using someone would surely have seen it by now.... | 0 | 1,034 |
Samples with JmDNS | <p>I've been able to get the samples that come with JmDNS to compile and run, however I can't get any of the classes to discover my services.</p>
<p>I'm running a Windows environment with multiple PC's running VNC, SSH & Apache and I've been trying to get JmDNS to discover at least one of these...</p>
<p>What I i... | 0 | 1,186 |
How to create client server in Go language? | <p>I am new to go,
I was trying to prepare client server in go language and tried to write code, but it's not giving any output. It's not giving any error but just listening.</p>
<p>Please someone help me, I want to create authentication system using go where server authenticate client using Username password..</p>
<... | 0 | 1,081 |
How do I get a list of all the duplicate items using pandas in python? | <p>I have a list of items that likely has some export issues. I would like to get a list of the duplicate items so I can manually compare them. When I try to use pandas <a href="http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.duplicated.html">duplicated method</a>, it only returns the first duplic... | 0 | 1,128 |
How to access variables from different classes in tkinter? | <p>I have been searching a lot and I still don't know how you access variables from different classes in python. In this case I want to access the variable <code>self.v</code> from <code>PageOne</code> class to <code>PageTwo</code> class.</p>
<p>Here is my code.</p>
<pre><code>import tkinter as tk
import smtplib
TIT... | 0 | 3,292 |
Margin: 0 auto is not centering my image | <p>I'm very new to all of this and am trying to build this website, but the main image on the page is not centering. I've tried all sorts of centering things but they don't work. Also, the width percentage is ignored too. </p>
<p>I've readjusted margin/padding to 0. don't know what it could be.</p>
<p>css for the pic... | 0 | 2,040 |
How to tell proguard to keep enum constants and fields | <p>I've try obfuscate our web application which use spring, jaxb and relies on annotations, and reflection heavily.
I apply many recipes found in internet to keep some classes, attributes, annotations and enumerations.
But with enumerations still have problem. I've able preserve enum constants apply configuration from ... | 0 | 1,886 |
How to get initial context from GlassFish server in Java SE? | <p>I have a class like below:</p>
<pre><code>public class Poligon {
public static void main(String[] args) {
try {
Context ctx = new InitialContext();
ConnectionFactory connectionFactory = (ConnectionFactory) ctx.lookup("jms/javaee7/ConnectionFactory");
Destination des... | 0 | 1,155 |
How to add new ASP.NET table row by clicking button? | <p>I am using asp.net [ c# ] .. </p>
<p>My question is about adding new row; if I click on that button (like every time I click on that button it will add new row) ..
I thought its easy to do it .. but it is not there. Something is missing I don't know what.</p>
<p>My code is [ Default3.aspx ] :</p>
<pre><code><... | 0 | 1,354 |
pyspark truncate table without overwrite | <p>I need to truncate a table before inserting new data.</p>
<p>I have the following code to insert:</p>
<pre class="lang-py prettyprint-override"><code>df.write.jdbc(dbUrl, self._loadDb, "append", self._props['dbProps'])
</code></pre>
<p>Which works great, except.. i want an empty database. I know about setting the... | 0 | 1,503 |
ResultSet.getString(1) throws java.sql.SQLException: Invalid operation at current cursor position | <p>When I run the following servlet:</p>
<pre><code>// package projectcodes;
public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException {
String UserID = request.getParameter("UserID");
String UserPassword = request.getParameter("UserPassword");
String u... | 0 | 1,831 |
TypeError: __init__() got an unexpected keyword argument 'size | <p>How do i fix this unexpected keyword argument 'size'? </p>
<hr>
<pre><code> Traceback (most recent call last):
File "H:\Documents\Astro game\astro games6.py", line 73, in <module>
main()
File "H:\Documents\Astro game\astro games6.py", line 61, in main
new_asteroid = Asteroid(x =... | 0 | 1,276 |
PHP Looping Template Engine - From Scratch | <p>For a group project I am trying to create a template engine for PHP for the people less experienced with the language can use tags like {name} in their HTML and the PHP will replace that tag with a predefined variable from an array. As well as supporting loops.</p>
<p>This is well beyond the expectations of the pro... | 0 | 1,218 |
How to make sure a React state using useState() hook has been updated? | <p>I had a class component named <code><BasicForm></code> that I used to build forms with. It handles validation and all the form <code>state</code>. It provides all the necessary functions (<code>onChange</code>, <code>onSubmit</code>, etc) to the inputs (rendered as <code>children</code> of <code>BasicForm</cod... | 0 | 1,487 |
Union Columns Vertically in SQL | <p>Assume these Tables:</p>
<p><strong>Group</strong>: (Id, Title): <code>{1,G1}, {2,G2}, {3,G3}, {4, G4}</code></p>
<p><strong>Category</strong>: (Id, Title): <code>{1, Cat1}, {2, Cat2}, {3, Cat3}, {4, Cat4}</code></p>
<p><strong>Product</strong>: (Id, GroupId, CategoryId, Name):</p>
<pre><code>{1, 1, 1, G1C1P1},... | 0 | 1,442 |
Passing parameters between two JavaFX controllers | <p>I want to click a column and send the cell index to a new stage. But I can't pass my parameter (<code>int clickIndex</code>) to another controller <code>EditClientController</code>. I've tried everything, but it still does not work. </p>
<p><strong>MainController</strong></p>
<pre><code>package controller;
import... | 0 | 5,504 |
GenericJDBCException: could not load an entity | <p>I am trying to read a lazy initialized entity <code>ProductUnits</code> which is a persistent set, and opened a new session for the same. </p>
<pre><code>Session session = HibernateUtil.getSessionFactory().openSession();
session.update(stock.getProduct());
List<ProductUnits> units = new ArrayList<ProductUn... | 0 | 2,979 |
How to retrieve the values from previous jsp page to result page? | <p>I am creating a quiz application. Here, there are 5 jsp pages with 5 different quizes. If I use 1 jsp page and result page, it is working fine..i.e; It is redirecting from QuizPage5.jsp and show the result in ResultPage.jsp.
I need to show all the results from QuizPage1.jsp, QuizPage2.jsp, QuizPage3.jsp, QuizPage4.j... | 0 | 6,912 |
Access Call Stored Procedure with Pass Through Parameter | <p>I'm using a Access 2010 front-end linked to a SQL Server 2012 database back-end.</p>
<p>In the Access frontend I have a general search screen, consisting of a text box whereby the results are displayed in a listbox. I want the text box to be able to search multiple fields that will also need to be wild cards.</p>
... | 0 | 1,324 |
Cannot convert object to primitive value error in react application? | <p>I'm developing a simple react-spring boot application, but because of a GitHub issue I recreate my application starter files using IntelliJ and installed the node modules using the previous application's package.json file's dependency data.</p>
<p>If I use a collapsing navigation bar (hamburger bar-->responsive nav... | 0 | 1,886 |
Generic HtmlHelper for creating html table from list of any type | <p>I would like to create a HtmlHelper for creating a html table. I would like the helper to be able to take a list of any type of object and a list of the properties of the object to display as columns. Something like this:</p>
<pre><code>public static HtmlString Table(this HtmlHelper helper, List<T> data, List... | 0 | 1,090 |
Failed to start Docker Application Container Engine | <p>I am new to Docker, so don't have much idea about it.
I tried restarting Docker service using command</p>
<p>service docker restart</p>
<p>As the command was taking too much of time I did a CTL+C
Now I am not able to start docker deamon
Any docker command gives following op</p>
<blockquote>
<p>Cannot connect to the ... | 0 | 1,282 |
Flutter: Get data from a list of json | <p>I'm doing a learning project related to climate through URL JSON, I get your data and I show them in the application</p>
<p>I'm trying to get the data from a JSON.
When I try to get the data I receive an error:
<strong>type '_TypeError' is not a subtype of type 'Widget'</strong>
I would like to solve this problem, I... | 0 | 21,143 |
Value cannot be null or empty. Parameter name: contentPath | <p>I am facing a strange issue with my MVC application, everything works fine i don't know what happened to this app now. I just update all the nuget packages.
Getting the below error</p>
<p><code>Value cannot be null or empty. Parameter name: contentPath at</code></p>
<p>Error Location</p>
<p><code>
@System.Web.Opt... | 0 | 1,177 |
iTextSharp - Add image to PDF from Datatable | <p>I try to create a PDF report from a datatable. One of the columns contents image. How can I extract the image from datatable and insert into PDF table? I'm using iTextShap version 5.4.2.0. Here is the code:</p>
<pre><code> public void Report(DataTable dt, string output)
{
Document doc = n... | 0 | 1,369 |
VS2012 Post-build event not firing | <p>I have a web project that fires a post-build event "On successful build" to perform some cleanup/migration activities (command script).</p>
<p>In VS2012, post-build on success ONLY fires when there is a code change. If there is no code change, the compiler still reports Successful Build, however, the on success po... | 0 | 1,319 |
Re: create a dropdown button in flutter | <p>I have used a DropDownButton in my build but i want the arrow to be displayed at the end and the dropdown items to be displayed from arrow, but in my app they are displaying from the top. i have attached the screenshots for your reference.</p>
<p>please can you tell me how to change this or is there any other way t... | 0 | 1,341 |
How to force mysql UPDATE query to use index? How to enable mysql engine to automatically use the index instead of forcing it? | <p>Below is the update query/query plan that is not using the compound index that was created recently. The explain shows that its not using the compound index named <code>radacctupdate</code> which i think will make the update query faster. There are other indexes on table too which are used by other queries.</p>
<p... | 0 | 1,887 |
How to retrieve Tab names from excel sheet using OpenXML | <p>I have a spreadsheet document that has 182 columns in it. I need to place the spreadsheet data into a data table, tab by tab, but i need to find out as I'm adding data from each tab, what is the tab name, and add the tab name to a column in the data table. </p>
<p>This is how I set up the data table. </p>
<p>I the... | 0 | 1,119 |
C# string interpolation-escaping double quotes and curly braces | <p>guys, </p>
<p>I'm building a JSON object from an interpolated string, and not getting how escaping works. I have to use double quotes for the API. </p>
<p>This does not interpolate the expressions between the curly braces:</p>
<pre><code>@"{{
""name"":""{taskName}"",
... | 0 | 1,274 |
How to cache bitmaps into native memory | <p>For my 10,000 points, i've decided to contibute something with this cool website: a mechanism to cache bitmaps on native memory.</p>
<h2>Background</h2>
<p>Android devices have a very limited amount of memory for each app- the heap ranges from 16MB to 128MB , depending on <a href="https://stackoverflow.com/a/17770... | 0 | 1,118 |
My Application Could not open ServletContext resource | <p>i have <em>Eclipse Maven</em> web project where i use <em>Spring mvc</em> and <em>Spring security</em>.
When i truy to launch it, it doesn't suceed to intialize the context:</p>
<p><code>Could not open ServletContext resource [/WEB-INF/spring-dispatcher-servlet.xml]</code></p>
<p>More details below:</p>
<hr>
<p>... | 0 | 3,913 |
"No such file or directory" Error when creating directory | <p>I am attempting to save thumbnails of user generated photos in a subdirectory in the documents directory, but I am unable to create the subdirectory in the first place. When I attempt to create the subdirectory in the documents directory I get this error (No such file or directory):</p>
<pre><code>Error Domain=NSCo... | 0 | 1,089 |
Error: Program type already present: androidx.versionedparcelable.ParcelImpl | <p>I'm Trying to add this <a href="https://github.com/ArthurHub/Android-Image-Cropper" rel="noreferrer">https://github.com/ArthurHub/Android-Image-Cropper</a> But when i add it i get this error "Error: Program type already present: androidx.versionedparcelable.ParcelImpl" </p>
<p>I have attached project gradle and app... | 0 | 1,707 |
Error in list of function arguments: '=' not recognized. Unable to parse query text | <p>I am generating an error in visual studio 2008's query pane that I can't seem to figure out.</p>
<blockquote>
<p>Error in list of function arguments: '=' not recognized. Unable to parse query text.</p>
</blockquote>
<p>After some cleaning up on the syntax and adding some proper quotations the issue still persist... | 0 | 4,756 |
JDBC connection to SQL Server: login failed for user x | <p>I am trying to set a JDBC connection to Sql Server 2008. I have created a database in Sql Server with this information:</p>
<pre><code>CREATE LOGIN xtest WITH PASSWORD = 'berenjenas7(((';
GO
CREATE USER samxtest FOR LOGIN xtest;
GO
GRANT SELECT TO samxtest;
GO
GRANT INSERT TO samxtest;
GO
GRANT UPDATE T... | 0 | 1,060 |
rails 3.1 deployment on heroku .css isn't precompiled error | <p><strong>Update</strong></p>
<p>I got this error because I had a public.css and public.js file that was not compiled with the rest of the .css and .js files. The solution was to add this line to the production.rb file</p>
<pre><code># Precompile additional assets (application.js, application.css, and all non-JS/CSS... | 0 | 1,486 |
Jackson failed to deserialization OneToMany objects | <p>I have faced with the problem that converter can't handle JSON object.</p>
<p>I have two objects in data base. Relationship OneToMany.</p>
<p>I have a AutoService with many services.</p>
<p>And wnen i am trying to send JSON object using postman to my server - I am getting an error: </p>
<pre><code>WARN org.sprin... | 0 | 1,345 |
IOException parsing XML document from class path resource - HTTP Status 500 - Servlet.init() | <p>I am building a simple Spring MVC Maven built java WAR application. My Maven project cleans and builds successfully and deploys to the server with no errors using the eclipse tomcat plugin. However, when I try to run the application Servlet, I get the following exception : </p>
<pre><code> Aug 23, 2013 2:35:29 P... | 0 | 2,718 |
Use SESSIONS variables between different php files | <p>I am new to <code>$_SESSIONS</code> but needs it to re-use variables between different php files. In the below code I want to use the variable <code>$word</code> in another php file, but I am unsure how to do this. </p>
<p>My <strong>php file</strong> looks like this:</p>
<pre><code><?php
if (isset($_POST["se... | 0 | 1,634 |
ENOENT: no such file or directory .? | <p>This is error which am getting while post data and file.
I have followed 'academind' tutorial for building Restful API services, also i have been searching answer for this type of errors but nothing works for me.</p>
<p>Am using "multer" to upload file </p>
<p>The folder 'uploads' available in the folder but it sh... | 0 | 1,314 |
Volley Server Error with null Network response | <p>Every time I try to use POST method with Volley, I get sever error. I get null value in getCause, and some default value in getNetworkResponse.toString().</p>
<p>If I use GET method, this works fine (I get response from my url).</p>
<p>Can anybody help what can I do?</p>
<pre><code> Map<String, String> j... | 0 | 1,493 |
anaconda navigator getting stuck at loading applications | <p>I have installed Anaconda on my Desktop running Ubuntu 18 Mate LTS. The output of</p>
<pre><code>python --version
</code></pre>
<p>is</p>
<pre><code>Python 3.6.5 :: Anaconda, Inc.
</code></pre>
<p>First of all, when I try to launch Anaconda Navigator using</p>
<pre><code>anaconda-navigator
</code></pre>
<p>the appl... | 0 | 2,218 |
Hibernate could not deserialize error | <p>I have this Oracle table:</p>
<pre><code>SQL> Name Null? Type
----------------------------------------- -------- ----------------------------
JOB_ID NOT NULL VARCHAR2(13)
TYPE NOT NULL NUMBER
C... | 0 | 2,980 |
angular 5 material 2 - auto complete getting data from external api | <p>I'm using angular 5 and material 2.</p>
<p>In ts file, I have this proeperty:</p>
<pre><code> filteredOptions: Observable<any[]>;
</code></pre>
<p>This property is going to have an array of values to show in the autocomplete field.</p>
<pre><code> [{
id:'1', name: 'teste 1'},
{id:... | 0 | 1,073 |
Populate IConfiguration for unit tests | <p>.NET Core configuration allows so many options to add values (environment variables, json files, command line args).</p>
<p>I just can't figure out and find an answer how to populate it via code.</p>
<p>I am writing unit tests for extension methods to configurations and I thought populating it in the unit tests via ... | 0 | 2,989 |
LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams | <p><strong>Explanation and solution at the bottom.</strong></p>
<p>I am developing one slider layout animation, the animation work fine but when all processes end, they get next Exception.</p>
<p>I guess <code>RelativeLayout</code> parent have something to do in exception, but I don't know how to resolve it.</p>
<pr... | 0 | 3,656 |
How to properly insert php variables into table cells? | <p>I know this sounds a little confusing, but allow me explain further. </p>
<p>I have a php function that prints the top of the table including the html tags as shown here:</p>
<pre><code>function print_table_head (){
echo "<table>
<thead>
<tr>
<th&g... | 0 | 1,668 |
How do I get the value from a form field using Odoo? | <p>I have this field in a form view:</p>
<pre><code><field name="value"/>
</code></pre>
<p>I want to get the value from the field when someone wants to add a new value, the way that I might do <code>$_GET['value']</code> in PHP.</p>
<p>Simple example:</p>
<p>I want, when the user inserts a value, for the prog... | 0 | 1,123 |
WebSphere web.xml / bindings issue | <p>I just recently started having issues while deploying EARS within websphere. The error I get after I install the apps is provided below.</p>
<pre><code>------Start of DE processing------ = [7/18/10 10:51:19:309 CDT] , key = javax.management.MBeanException com.ibm.ws.management.AdminServiceImpl.invoke 679
Exception... | 0 | 4,552 |
How to perform validation in radio button in angular 6? | <p>Actaully i have two types of input types: one is normal text and another is radio type.I want to valdiate both the fields before submit button is entered.</p>
<p><a href="https://i.stack.imgur.com/5xfAB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5xfAB.png" alt="enter image description here">... | 0 | 1,068 |
How to Mock Pageable object using Mockito? | <p>I am developing <code>Spring Boot + Data JPA + Mockito</code> example. I've developed test case for the <code>Pagination</code> repository method, but its giving me below error.</p>
<pre><code>org.mockito.exceptions.misusing.InvalidUseOfMatchersException:
Misplaced or misused argument matcher detected here:
->... | 0 | 1,892 |
How to deal with concurrency failure on IdentityUser update? | <p>I have a method to update user claims within our app.</p>
<p>I am logged as an admin user who can edit other users.</p>
<p>I am trying to remove existing claims of one user and assign new ones.</p>
<p>When removing claims using <code>UserManger</code> I am getting <code>ConcurrencyFailure</code> as a result. (Som... | 0 | 8,754 |
Android: out of memory exception in Gallery | <p>My app shows a list of 9 categories and each category displays a Gallery-based coverflow (graciously offered by Neil Davies <a href="http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html" rel="nofollow noreferrer">here</a>) with images of the selected category. </p>
<p>The images are fetched from the... | 0 | 2,605 |
D3 multi-series line chart from pivoted JSON | <p>There is a great example of a multi-series line chart here <a href="http://bl.ocks.org/mbostock/3884955" rel="noreferrer">http://bl.ocks.org/mbostock/3884955</a> and if the tsv data were laid out I'm sure it would look something like this:</p>
<pre><code>[
{
"date": "20111001",
"New York": "63.4",
"Sa... | 0 | 1,245 |
Android Fragment null object mNextAnim Internal Crash | <p>Users of the app I am working on have a crashing issue. This is the stack trace I get from the console.</p>
<pre><code>java.lang.NullPointerException: Attempt to write to field 'int android.support.v4.app.Fragment.mNextAnim' on a null object reference
at android.support.v4.app.BackStackRecord.popFromBackStack(BackS... | 0 | 1,680 |
Spring MVC file upload - Unable to process parts as no multi-part configuration has been provided | <p>So I'm a newbie to Spring and I'm trying to get file upload working for my project (I'm using Spring Tool Suite btw.) and when submitting a form all I'm getting is:</p>
<blockquote>
<p>HTTP Status 500 - Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: Unable to proce... | 0 | 2,103 |
Tooltip on Line Chart showing Date | <p>I want to add Tooltip when I move cursor over a chart line. I found this example:</p>
<pre><code>import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.logging.Level;
import ja... | 0 | 2,270 |
Cross Origin Resource Sharing for c# WCF Restful web service hosted as Windows service | <p>I have a WCF Restful service which I am hosting as Windows service. I want to add cross domain support to my service. However, i can do this easily when I use global.asax file. But I want to host my service as a windows service. </p>
<p>i have created a project which host my service as windows service. Now the prob... | 0 | 1,059 |
About tf.nn.softmax_cross_entropy_with_logits_v2 | <p>I have noticed that <code>tf.nn.softmax_cross_entropy_with_logits_v2(labels, logits)</code> mainly performs 3 operations:</p>
<ol>
<li><p>Apply softmax to the logits (y_hat) in order to normalize them: <code>y_hat_softmax = softmax(y_hat)</code>.</p></li>
<li><p>Compute the cross-entropy loss: <code>y_cross = y_tru... | 0 | 1,856 |
Jitterbit - "ORA-12504, TNS:listener was not given the SID in CONNECT_DATA" | <p><strong>Issue:</strong> </p>
<p>We're attempting to do upserts to Salesforce from a Lawson (Oracle) database for a client, using Jitterbit. We are using the Oracle [JDBC] driver on the default port. We have the Jitterbit Agent running on Windows Server 2008 on a machine inside the client's network, and we are assur... | 0 | 1,166 |
Tips for debugging .htaccess rewrite rules | <p>Many posters have problems debugging their RewriteRule and RewriteCond statements within their <strong><code>.htaccess</code></strong> files. Most of these are using a shared hosting service and therefore don't have access to the root server configuration. They cannot avoid using <code>.htaccess</code> files for re... | 0 | 1,261 |
Android app crash with null pointer dereference? | <p>I'm developing an app, and sometimes it crashes, without any cause in my code.
The only thing I have in the logcat is this:</p>
<pre><code> 2019-10-07 09:55:34.677 15014-15014/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-10-07 09:55:34.678 15014-15014/? A/DEBUG: Build fingerpri... | 0 | 7,255 |
Apache server keeps crashing, "caught SIGTERM, shutting down" | <p>This just started happening three weeks or so ago. The content of my website hasn't changed, it's just a phpBB forum using MySQL as a back end.</p>
<p>Nothing has changed in well over a year but recently, every two days or so, the server just shuts down and cannot be accessed at all, I have to notify my service prov... | 0 | 4,562 |
Spring-Hibernate - No Session found for current thread | <p>I have a java stuts2 web application using spring and hibernate.</p>
<p>Im getting <code>org.hibernate.HibernateException: No Session found for current thread</code>.</p>
<p><strong>SpringBean.xml</strong></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/... | 0 | 3,102 |
kerberos from Java - getting a Subject for the currently authenticated user | <p>We have a kerberos domain at my company and I'm running a few of the Java/Kerberos <a href="http://java.sun.com/javase/6/docs/technotes/guides/security/jgss/lab/part2.html" rel="noreferrer">examples</a>. The question I have is around the login mechanism from the server's perspective. When running the server example ... | 0 | 1,636 |
Jedis : Could not get a resource from the pool | <h2>Background</h2>
<p>Our application uses <code>Jedis-2.2.1</code> and connects to <code>Redis-2.6</code>, here's how I get jedis resource : </p>
<pre><code>protected static JedisWrapper getRedisUserWrite(String UDID) {
if (redisUserWritePools.get(0) == null) init();
int hash = hash(UDID);
... | 0 | 1,497 |
Ambiguous class resolution in laravel phpexcel update | <p>I try to update the laravel with php excel while installing i found the below warning in the composer.</p>
<p><strong>Error:</strong> </p>
<pre><code>Warning: Ambiguous class resolution, "SettingsController" was found in both
"C:\xampp\htdocs\mti\app\controllers\SettingsController.php" and
"C:\xampp\htdocs\mti... | 0 | 1,901 |
how to make quiz questions appear one at a time in javascript | <p>JavaScript noob here. I'm trying to make a quiz app I'm working on, but I really don't know how to proceed. I've written out all the questions with html. </p>
<p>Here's the situation: this quiz has no correct answers, just answer values. The code is supposed to add up all the values of each question and display a f... | 0 | 2,275 |
Spring Boot 2.5.0 and InvalidDefinitionException: Java 8 date/time type `java.time.Instant` not supported by default | <p>After update from Spring Boot 2.4.5 to Spring 2.5.0 I noticed the following exceptions in the application logs:</p>
<pre><code>Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.Instant` not supported by default: add Module "com.fasterxml.jackson.datatype:... | 0 | 1,960 |
ESLint broken: Rules with suggestions must set the `meta.hasSuggestions` property to `true` | <p>I am using VSCode, and when I add the line <code>'react-hooks/exhaustive-deps': 'warn'</code> to my .eslintrc.js, I get the following in the ESLint output:</p>
<pre><code>Rules with suggestions must set the `meta.hasSuggestions` property to `true`. Occurred while linting
C:\Users\filepath.jsx:72 Rule: "react-ho... | 0 | 1,951 |
Babel doesn't ignore node_modules directory, although it is in "ignore" config | <p>For some reason <code>babel</code> doesn't ignore <code>node_modules</code> directory, although I specified it in <code>"ignore"</code> field of <code>.babelrc</code> file. Why does it happen? How to make <code>babel</code> act as expected?</p>
<p>My goal is to compress and mangle all <code>.js</code> file... | 0 | 1,101 |
Tomcat catalina.out file is growing very rapidly! How to prevent Hibernate's INFO and DEBUG statements from getting added to catalina.out file? | <p>My Java application (Spring, Hibernate, MySQL) is running in Tomcat 5.5</p>
<p>After the last set of changes to my application, Tomcat's catalina.out file is growing very rapidly. With each query it adds a few MBs of INFO and DEBUG statements to the file</p>
<p>The log file has very large number of INFO and DEBUG ... | 0 | 3,524 |
Regex inside array in mongoDB | <p>i want to do a query inside a array in mongodb with regex, the collections have documents like this:</p>
<pre><code>{
"_id" : ObjectId("53340d07d6429d27e1284c77"),
"company" : "New Company",
"worktypes" : [
{
"name" : "Pompas",
"works" : [
{
"name" : "name 2",
... | 0 | 2,608 |
Make flash file scale to div width and maintain height according to its aspect ratio | <p>We're having a problem to make a flash file scale 100% according to the parent div width, while still maintaining the height according to its aspect ratio.</p>
<p>Please check out the code on jsFiddle (http://jsfiddle.net/LgegF) or paste the below code into an empty html-page:</p>
<pre><code><!doctype html>
... | 0 | 1,058 |
Spring Boot auto configuration for datasource | <p>I try to create Spring Boot app with Hibernate 5 and Postgres 9. Now I have next error: </p>
<pre><code>Parameter 0 of constructor in org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration required a bean of type 'javax.sql.DataSource' that could not be found.
- Bean method 'dataSource' no... | 0 | 2,445 |
Multiple WebSecurityConfigurerAdapter in spring boot for multiple patterns | <p>I am trying to set up multiple WebsecurityConfigurerAdapter for my project where the spring boot actuator APIs are secured using basic auth and all other endpoints are authenticated using JWtAuthentication. I am just not able to make it work together, only the config with the lower order works. I am using Spring Bo... | 0 | 1,242 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.