title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to fix "Can't perform a React state update on an unmounted component." error in React Native
<p>I'm fetching data in my local database (sqlite) and updating the state, and this error is appearing: </p> <blockquote> <p>Can't perform a React state update on an unmounted component. This is a >no-op, but it indicates a memory leak in your application. To fix, >cancel all subscriptions and asynchronous tasks in ...
0
1,464
SSIS using Script task - Convert XLS to CSV
<p>I am using C# script task component to convert XLS to CSV file , my entry point is set to ScriptMain</p> <p>But I am constantly getting error "Error: Cannot execute script because the script entry point is invalid."</p> <pre><code>/* Microsoft SQL Server Integration Services Script Task Write scripts using M...
0
1,907
How can I implement this POST request using HTTParty?
<p>I am having difficulty making a POST request to an API endpoint using Ruby's HTTParty library. The API I'm interacting with is the <a href="https://github.com/gittip/www.gittip.com#api">Gittip API</a> and their endpoint requires authentication. I have been able to successfully make an authenticated GET request using...
0
1,428
No more post back after file download in sharepoint
<p>I tried to download a file from sharepoint. But after I download this file, I can't click on other buttons. What is wrong with my coding?</p> <p><strong>This is my first way.</strong></p> <blockquote> <pre><code> Response.AppendHeader("content-disposition", "attachment; filename= " + fileName); ...
0
3,908
MVC 4 Bootstrap Modal Edit \ Detail
<p>Hoping someone might be able to help me with something I am experimenting with in MVC 4 using bootstrap.</p> <p>I have a strongly-typed index view which displays items in a table along with edit and delete action icons in each line.</p> <pre><code>@model IEnumerable&lt;Models.EquipmentClass&gt; .... @foreach (va...
0
1,040
Get info by javascript in laravel
<p>I'm trying to get specific column from second table by javascript and return data of it to my view but i'm not sure how it can be done.</p> <h1>Logic</h1> <ol> <li>Products table has <code>price</code> column</li> <li>Discount table has <code>product_id</code>, <code>min</code>, <code>max</code> and <code>amount</...
0
2,361
How to install weblogic maven plugin for weblogic v12.1.2 (12c)?
<p>To install weblogic application server I decompressed 2 files I got from or oracle using these links:</p> <p><a href="http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.zip" rel="noreferrer">http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.zip</a> <a href="http://download.ora...
0
1,683
VS Code Remote SSH Connection not working
<p>Im trying to setup vscode with the remote developement extensions on a second pc. While it works on my main one it doesnt on the second one. Tried reinstalling vscode, extensions and using older versions but nothing works.</p> <p>When trying to connect it cancels after chosing the os. So I cant even type in the pass...
0
1,114
Spring security oauth2 and form login configuration
<p>My project consists exposes two different parts, a JSF admin panel and a RESTfull service. I am trying to setup spring security to use different authentication methods depending on the URL the user navigates.</p> <p>The requirements are</p> <ul> <li>Users navigating to the JSF page get a login screen where they au...
0
2,837
Show splash screen when page loads, but at least for x seconds
<p>I have a div with a splashscreen element. This element will be hidden on page load. However, I also want to make sure the splash screen is shown for at least x seconds.</p> <p>I know this is not all supposed to be formatted as code but the auto formatter made me do it.</p> <p>To use logic: Show splash screen for a...
0
1,160
undefined reference to `boost::this_thread:
<p>I am trying to build to Doge coin headless wallet (similar to bitcoind) it seems to be Boost causing the error but I have no idea on how to fix it.</p> <p>(Ubuntu 12.04)</p> <p>When I execute "make -f makefile.unix USE_UPNP=-" I get this error:</p> <pre><code>/bin/sh ../share/genbuild.sh obj/build.h g++ -O2 -pthr...
0
3,097
Spring Security - Token based API auth & user/password authentication
<p>I am trying to create a webapp that will primarily provide a REST API using Spring, and am trying to configure the security side.</p> <p>I am trying to implement this kind of pattern: <a href="https://developers.google.com/accounts/docs/MobileApps" rel="nofollow noreferrer">https://developers.google.com/accounts/do...
0
2,313
Can't change back button title but I can hide it
<p>I'm developing an <strong>iPhone</strong> application with <strong>latest SDK</strong> and <strong>XCode 4.2</strong></p> <p>I use a UINavigationController, and to show a new ViewController I do this on AppDelegate.m:</p> <pre><code> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions...
0
1,330
Should FILTER be used inside or outside of SUMMARIZE?
<p>I have these two queries:</p> <pre><code>EVALUATE FILTER ( SUMMARIZE ( 'Sales', Products[ProductName], 'Calendar'[CalendarYear], "Total Sales Amount", SUM ( Sales[SalesAmount] ), "Total Cost", SUM ( 'Sales'[TotalProductCost] ) ), Products[ProductName] = "AWC Logo ...
0
1,052
WEBPACK_IMPORTED_MODULE_13___default(...) is not a function
<p>Context : I am building a small library (let's call it myLibrary here) using TypeScript and Webpack. I built it, imported it in a react application but the react application crash.</p> <p><strong>Library side</strong></p> <p>My main entry point (index.ts) has a default export as such :</p> <pre><code>import wrapper ...
0
1,175
Email composure iOS 8
<p>I'm trying to open email composure in iOS 8 from Xcode 6, but getting an error. The same code is working fine if I'm trying from Xcode 5. Later I downloaded a sample code from apple developer portal: </p> <p><a href="https://developer.apple.com/library/content/samplecode/MessageComposer/Introduction/Intro.html" rel...
0
1,065
How to show Spinner-List when we tapped on button in android?
<p>Hi I recently came to the android technology and in my app I have two buttons(one for showing movies-list and another one for showing countrieslist)</p> <p>When I tap on the second button I want to display movies-list in spinner-list as in the first image bellow.</p> <p>But according to my code, when I tap on the ...
0
1,518
Submit a php form and display its result on div without reloading page
<p>First of all, thank you for your kind help. </p> <p>I have tried almost everything I found on stackoverflow but I cannot get this to work.</p> <p>I created a form to send a text to the webmaster (instead of an email). So I have my index.php file </p> <pre><code> &lt;style&gt; .result{ padding: 20px...
0
1,359
how to install node js canvas on windows
<p>I'm trying to get working canvas on node js. I'm using Windows Vista. After basic approach <code>npm install canvas</code> failed (see error below), I have looked up some tutorials, here is what I have tried:</p> <p>sources:<br> <a href="https://github.com/benjamind/delarre.docpad/blob/master/src/documents/posts/in...
0
1,071
Java io.jsonwebtoken.MalformedJwtException: Unable to read JSON value:
<p>I have following function written to parse claims:</p> <pre><code> public Claims getAllClaimsFromToken(String token) { return Jwts.parser().setSigningKey(config.getJwtSecret()).parseClaimsJws(token).getBody(); } </code></pre> <p>And when I try to call the function with the following string:</p> <pre><code>yJ...
0
3,768
Download a image from server to android and show in imageview
<p>I have an server (i use GlassFish). I am able to send Json or XML etc. with http to my android device. I saw an example to upload a picture from my android device to the server. That converts my picked image to byte, converts to String and back at my server. So i can put it on my PC (server). Now i just want the op...
0
1,504
How to Calculate Centroid
<p>I am working with geospatial shapes and looking at the centroid algorithm here,</p> <p><a href="http://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon" rel="noreferrer">http://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon</a></p> <p>I have implemented the code in C# like this (which is just this adapted),<...
0
1,339
Can't deploy app to ios 8 device
<p>Just updated an iPad Mini to iOS 8 and suddenly can't debug my app on it with XCode 6.0.1. The error in Xcode is <code>App installation failed</code> with <code>An unknown error has occurred.</code>. On the device the app remains greyed out.</p> <p>Tried to :</p> <ul> <li>delete the app from ipad ( was working bef...
0
1,038
Generate the JPA metamodel files using maven-processor-plugin - What is a convenient way for re-generation?
<p>I am trying to use maven-processor-plugin for generating JPA metamodel java files and I set up my pom.xml as belows. </p> <pre><code>&lt;plugin&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;source&gt;1.8&lt;/source&gt; &lt;target&gt;...
0
1,148
What's the net::ERR_HTTP2_PROTOCOL_ERROR about?
<p>I'm currently working on a website, which triggers a <code>net::ERR_HTTP2_PROTOCOL_ERROR 200</code> error on Google Chrome. I'm not sure exactly what can provoke this error, I just noticed it pops out only when accessing the website in HTTPS. I can't be 100% sure it is related, but it looks like it prevents JavaScri...
0
1,691
Spring Boot Integration test throwing error and not able to pick up an existing bean in another maven module
<p>I have the following maven-based project structure</p> <pre><code>product-app product-web product-service product-integration-tests </code></pre> <p>There is an <code>MailClientService</code> service written in <code>product-service</code> module that I would like to do an integration test on. The inte...
0
5,234
Reactjs Bootstrap Overriding CSS
<p>I am learning react and nextjs, and am faced with a problem where the bootstrap css is overriding my own css. Basically I have a navbar component with a style of backgroundColor red but unfortunately the bootstrap css then overrides the style. I need help to find a better way to achieve this result.</p> <p>Here is ...
0
1,187
Why does Celery work in Python shell, but not in my Django views? (import problem)
<p>I installed Celery (latest stable version.) I have a directory called <code>/home/myuser/fable/jobs</code>. Inside this directory, I have a file called tasks.py:</p> <pre><code>from celery.decorators import task from celery.task import Task class Submitter(Task): def run(self, post, **kwargs): return ...
0
1,277
ASP.Net: How to maintain TextBox State after postback
<p>I would like to know how to maintain the control state that has been modified in Javascript.<br /> I have two TextBoxes, one DropDownList and a button (all Runat=Server) in C# ASP.net 2010 Express.<br /><br /> First textbox is just accept whatever data user input. <br />Second textbox enable state will change based ...
0
1,239
OnCheckedChanged event not firing
<p>I have a GridView with a column of checkboxes (the rest of the GridView is being populated from a database). I'm using AJAX to perform different functions, and I'm wondering if i'm just not calling the OnCheckedChanged event in the right place. Should it be wrapped in some sort of UpdatePanel? I'm still really new t...
0
1,390
Why is ASP.NET throwing so many exceptions?
<p>By coincidence I watched the debug output of Visual Studio a bit. I can see hundreds and hundreds of various exceptions being thrown. I checked another ASP.NET based solution and it is showing same behavior. Why are all those exceptions thrown? I cannot believe it is good for the overall performance, is it? Look at ...
0
1,372
Radio box, get the checked value [iCheck]
<p>Basic radio box</p> <pre><code>&lt;div class="adv_filter"&gt; &lt;li&gt; &lt;input type="radio" name="letter_type" data-custom="Text" value="0"&gt; Text&lt;/li&gt; &lt;/li&gt; &lt;li&gt; &lt;input type="radio" name="letter_type" data-custom="Text" value="0"&gt; Text&lt;/li&gt; ...
0
1,150
How get <body> element from the html which one have as a string
<p>I have a stupid problem. An <code>jQuery.ajax</code> request return me a <strong>full HTML text</strong> as a string. I receive such response in an case of error on the server. The server give me an error description which I want to place inside of the corresponding place of my current page.</p> <p>So now the quest...
0
1,190
Chip Group OnCheckedChangeListener() not triggered
<p>I'm trying to make a recyclerview filter based ChipGroup &amp; Chip</p> <p><a href="https://i.stack.imgur.com/DltSi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DltSi.png" alt="enter image description here"></a></p> <p>I'm use fragment on my app, so, the fragment who contain the RecyclerView contain a...
0
1,488
Ios Xcode Message from debugger: Terminated due to memory issue
<p>I have an app with collection view and a cell within this collection view that redirects to external link. </p> <p>Whenever that link opens the app crashs in the background and gives on the debugger: </p> <blockquote> <p>"Terminated due to memory issue". </p> </blockquote> <p>If I just press home button the app...
0
3,668
Setting Classpath using command prompt in Windows 7
<p>I am compiling my code through Windows 7 using command prompt -- here are details :</p> <p>I set the class path like this :</p> <pre><code>set classpath= %classpath%;C:\java-programes\Servlet-Programing-new1\TotalUsersOnline\lib\servlet-api\*.jar;C:\java-programes\Servlet-Programing-new1\TotalUsersOnline\lib\servl...
0
1,297
Bcrypt installation fails in Docker
<p>I've created a Node-application with MongoDB that runs in Docker. It worked fine until I included <a href="https://github.com/ncb000gt/node.bcrypt.js" rel="nofollow">node.bcrypt.js</a>. This makes Node crash with <code>node-gyp</code> and <code>bcrypt</code>.</p> <p>The app runs fine locally and on Heroku.</p> <p>...
0
1,098
Error: StaticInjectorError(DynamicTestModule)[RouterLinkWithHref -> Router]: (NullInjectorError: No provider for Router!)
<p>I am preparing unit test case for AppComponent which have router as a injected dependency and have included RouterTestingModule in my test bed. But still getting a weird error. Please find the error log shown below:</p> <pre><code>Error: StaticInjectorError(DynamicTestModule)[RouterLinkWithHref -&gt; Router]: St...
0
1,105
Silverlight Listbox Item Style
<p>How would one go about styling a listbox such that the selection has a different text color than the default view? I've looked at this in several ways and because the ContentPresenter lacks a Foreground property. </p> <p>The default control template of the listbox provides several rectangles which one can use to ad...
0
5,979
Having a div/0 error in excel 2007 return a 0 with in a large formula
<p>I apologize if this is not considered real programming since it is in Excel but I need help and this is the most helpful place I know!</p> <p>Alright so I have a very large if formula in excel:</p> <pre><code>=IF(AND(($EZ16+LF$1139)&gt;$B$1145,($EZ16+LF$1139)&lt;$B$1146),IF(OR(AND($FB16&lt;LF$1141,$FB16&gt;LF$1142...
0
1,685
ValueError: failed to parse CPython sys.version after using conda command
<p>I'm running into an error that I can't solve despite others having reported the same error.</p> <p>I am connecting remotely to a Linux machine. I have installed the latest version of anaconda:</p> <pre><code>$ bash Anaconda2-2.4.0-Linux-x86_64.sh // A lot of python libraries get installed installing: _cache-0.0-...
0
1,637
android.content.Context.getContentResolver()' on a null object reference
<p>I can't seem work out why I am getting a null pointer on this?</p> <p>This is my AsyncTask that I call to grab the data. It passes it to a JSON Parser and an array of Objects is returned. This is then passed to my DBHelper where it was passing to my database through a ContentResolver.... </p> <pre><code>public c...
0
3,442
ASP.NET Validation not working
<p>I made a registration form , add to it some validation but they not being targeted/fired , am not sure what's wrong , also it seems to work fine on Internet Explore but not on firefox:</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %&gt; &lt;!DOCTYPE...
0
6,587
Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count
<p>I am getting this exception about commits and rollbacks but am not sure what exactly is wrong with my Stored Procedure. I have read the answers in other such questions and am unable to find where exactly the commit count is getting messed up.</p> <p>So, this is the Stored Procedure I use:</p> <pre><code>-- this is...
0
2,774
Yii and .htaccess file on production server
<p>I am new to yii and have some problem in configuring .htaccess file on production server.</p> <p><strong>On localhost :</strong> </p> <p><strong>Location of Application :</strong> /www/connect_donors/</p> <p><strong>Default URL that yii provides is</strong>,</p> <pre><code>http://localhost/connect_donors/index.p...
0
1,168
Copy Sqlite database for android application
<p>I am trying to use my own created database in my android application using this tutorial <a href="http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/" rel="nofollow noreferrer">http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/</a></p> <p>I hav...
0
2,895
How can I disable code signing for debug builds in Visual Studio 2013?
<p>We recently upgraded Visual Studio from 2010 to 2013 and everything seems to be working the same as before except for one thing. In 2010 code signing was only performed when publishing the project, but in 2013 it wants to sign the output assembly every time we build the project.</p> <p>I'm having issues trying to f...
0
4,874
JUNIT test case for connection with database
<p><strong>This is the code which im testing for JDBC connection</strong></p> <pre><code>package com.sybase; public class SybaseDBConnection { public static Properties prop = null; public static Connection getConnection(String databaseType) { Connection conn = null; // Properties prop = n...
0
2,478
How to handle child click event in Expandablelistview in Android?
<p>I'm creating expandable list view in Android. I have add three textview in relative layout and two buttons in horizontal linear layout means this two buttons are added in one row, so how can I fire click event on those two buttons?</p> <p>And I want to call another activity on button click in expandable list view. ...
0
5,134
Scikit-learn - ValueError: Input contains NaN, infinity or a value too large for dtype('float32') with Random Forest
<p>First, I have checked the different posts concerning this error and none of them can solve my issue.</p> <p>So I am using RandomForest and I am able to generate the forest and to do a prediction but sometimes during the generation of the forest, I get the following error.</p> <blockquote> <p>ValueError: Input contai...
0
1,042
Selecting a subset of a Pandas DataFrame indexed by DatetimeIndex with a list of TimeStamps
<p>I have a large Pandas <code>DataFrame</code></p> <pre><code>&lt;class 'pandas.core.frame.DataFrame'&gt; DatetimeIndex: 3425100 entries, 2011-12-01 00:00:00 to 2011-12-31 23:59:59 Data columns: sig_qual 3425100 non-null values heave 3425100 non-null values north 3425099 non-null values west ...
0
1,483
How to Add Columns to Jquery DataTable Dynamically
<p>I have a student Fee module, and I want to Generate Fee Class wise. Means Generate Fee for a whole Class, not for a Specific Student. <code>DataTable</code> will look like below..</p> <pre><code>|RegistrationNo | Name | AdmissionFee | TutionFee | SportsFee | Exam Fee| Discount | ------------------------------------...
0
1,374
beautifulSoup html csv
<p>Good evening, I have used BeautifulSoup to extract some data from a website as follows:</p> <pre><code>from BeautifulSoup import BeautifulSoup from urllib2 import urlopen soup = BeautifulSoup(urlopen('http://www.fsa.gov.uk/about/media/facts/fines/2002')) table = soup.findAll('table', attrs={ "class" : "table-hori...
0
1,863
Windows Python2.7 mysqldb installation error
<p>I'm trying to install mysqldb for Python. I'm running "pip install mysql-python" and I keep getting this error:</p> <p>running build_ext<br> building '_mysql' extension<br> creating build\temp.win32-2.7<br> creating build\temp.win32-2.7\Release<br> C:\Program Files (x86)\Common Files\Microsoft\Visual C++ fo...
0
1,177
"Class is Already defined" error
<p>I have listview app exploring cities each row point to diffrent city , in each city activity include button when clicked open new activity which is infinite gallery contains pics of that city , i add infinite gallery to first city and work fine , when i want to add it to the second city , it gave me red mark error i...
0
1,898
How to obtain href values from a div using xpath?
<p>I have a div like this:</p> <pre><code> &lt;div class="widget-archive-monthly widget-archive widget"&gt; &lt;h3 class="widget-header"&gt;Monthly &lt;a href="http://myblog.com/blogs/my_name/archives.html"&gt;Archives&lt;/a&gt;&lt;/h3&gt; &lt;div class="widget-content"&gt; &lt;ul&gt; ...
0
1,741
How to change field types for existing index using Elasticsearch Mapping API
<p>I am using <code>ELK</code> and have the following document structure</p> <pre><code> { "_index": "prod1-db.log-*", "_type": "db.log", "_id": "AVadEaq7", "_score": null, "_source": { "message": "2016-07-08T12:52:42.026+0000 I NETWORK [conn4928242] end connection 192.168.170.62:47530 (31 connections n...
0
1,496
align 2 table column widths with each other
<p>I have 2 tables one on top of the other and I would like to align their column widths exactly with each other, is there a way to do this? Tried fixed table col widths etc no joy</p> <p>You can see on fiddle the columns are slightly off each other <a href="http://jsfiddle.net/askhe/">http://jsfiddle.net/askhe/</a></...
0
3,097
Why can't clang with libc++ in c++0x mode link this boost::program_options example?
<p>Compiling this example code for boost::program_options: <a href="http://svn.boost.org/svn/boost/trunk/libs/program_options/example/first.cpp" rel="noreferrer">http://svn.boost.org/svn/boost/trunk/libs/program_options/example/first.cpp</a></p> <p>...on MacOS Lion (10.7.2), using boost-1.48.0 installed with MacPorts:...
0
2,657
Error:Cannot read packageName from app/src/main/AndroidManifest.xml
<p>These are the errors that pop up when running my app for splash screen.</p> <pre><code>Error:The markup in the document preceding the root element must be well-formed. Error:Cannot read packageName from /Users/akellavamsimeher/AndroidStudioProjects/WILM/app/src/main/AndroidManifest.xml </code></pre> <p>I tried to ...
0
1,319
Error occurred while installing mini_racer (0.2.0)
<p>I am using mac 10.14. I have some problem with mini_racer gem. After run bundle install the below error occurs. I don't know how can I solve this.</p> <p><strong>Error</strong> </p> <pre><code>Installing mini_racer 0.2.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. cur...
0
1,122
Save CSV files into mysql database
<p>I have a lot of csv files in a directory. With these files, I have to write a script that put their content in the right fields and tables of my database. I am almost beginner in php language : I have found some bits of code on the Internet. It seems to work, but I am stuck at a stage. Some topics are related on thi...
0
1,367
Find the index of the n'th item in a list
<p>I want to find the index of the n'th occurrence of an item in a list. e.g., </p> <pre><code>x=[False,True,True,False,True,False,True,False,False,False,True,False,True] </code></pre> <p>What is the index of the n'th true? If I wanted the fifth occurrence (4th if zero-indexed), the answer is 10.</p> <p>I've come ...
0
3,280
Build is Success but No sources to compile
<p>Maven test output in the Eclipse console:</p> <pre><code>[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for Mabi:Mabi:jar:0.0.1-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.se...
0
2,497
ERROR: Kendo"Something" is not a function
<p>So I am trying to convert my plain HTML/Javascript site (which works fine) into an ASP MVC4 project. What I do is get and XML and use and XSLT to transform. I litreally use the code <a href="https://stackoverflow.com/questions/7471391/using-xslt-in-asp-net-mvc-3">from here</a> to do that </p> <p>In my <code>_Layout...
0
1,240
Optimizing the backtracking algorithm solving Sudoku
<p>I'm hoping to optimize my backtracking algorithm for my Sudoku Solver.</p> <hr> <p>What it does now:</p> <p>The recursive solver function takes a sudoku puzzle with various given values.</p> <p>I will scour through all the empty slots in the puzzle, looking for the slot that has the least possibilities, and get ...
0
1,188
How to grab values from key:value pairs in parsed JSON in Python
<p>I am trying to extract data from a JSON file. Here is my code.</p> <pre><code>import json json_file = open('test.json') data = json.load(json_file) json_file.close() </code></pre> <p>At this po...
0
1,601
showDialog in button Listview adapter
<p>i have a listView like <a href="https://stackoverflow.com/questions/30092158/set-button-onclick-in-listview-android/30092841#30092841">THIS</a></p> <p><img src="https://i.stack.imgur.com/iBS2E.png" alt="enter image description here"></p> <p>i want when i press the delete. it show a dialog like this image</p> <p><...
0
1,749
Angular2- Getting confused with Observable Catch closure scope
<p>Wondering if you can give a little assistance. I appear to be getting myself a bit confused when it comes to using <code>catch</code> with <code>Observable</code>s.</p> <p>Basically what I'm trying to do is the following: When my API returns a 403 error, I want to perform some actions on my <code>TokenStore</code>,...
0
1,203
Fortran Error Meanings
<p>I have been following books and PDFs on writing in FORTRAN to write an integration program. I compile the code with gfortran and get several copies of the following errors.</p> <pre><code>1)Unexpected data declaration statement at (1) 2)Unterminated character constant beginning at (1) 3)Unclassifiable statement at ...
0
1,483
How to install vuetify 2.0 beta to the new vue cli project?
<p>Vuetify 2.0.0-beta.0 has just been released and I want to try it out and play around in a new vue test application. But I get errors when I try to install it in a fresh new project. Here are the steps I've taken.</p> <p>I use <code>@vue/cli v3.8.2</code> to create a new project with default settings:</p> <pre><cod...
0
1,479
Error inflating class fragment: Duplicate id , tag null, or parent id with another fragment
<p>I am trying to make an app in which when user clicks on item in ListView, the GoogleMaps is displayed.</p> <p>I have tried following code:</p> <p><strong>ShowPlacesActivity.java</strong></p> <pre><code>public class ShowPlaceActivity extends Activity { @Override protected void onCreate(Bundle savedInstanc...
0
3,480
How to fix `Warning: Text content did not match. Server: "Some Data" Client: "Loading..."`
<p>I'm getting this error on initial load of my SSR application: <code>Warning: Text content did not match. Server: "SOME DATA" Client: "Loading..."</code> How to initialize client side of the app without setting <code>loading</code> flag to true?</p> <p>I’m setting up a SSR with react, express and apollo. I get a pro...
0
1,461
p:commandButton in p:dataTable
<p>I got a problem with a p:commandButton inside a p:dataTable My button does not call the procedure in my backing bean. Does anyone have an idea why this button won't work?</p> <p>Best Regards</p> <p>Button Code:</p> <pre><code> &lt;p:column headerText="Details" style="width: 10px;"&gt; ...
0
5,868
Maven error : Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
<p>I'd been stuck with this simple issue for an hour now. Maven was working fine last week, I don't know what went wrong it gives me this error. I tried all the ways to debug and all the solutions found in StackOverflow and many other places. I even tried replacing M2_HOME path with M3_HOME and MAVEN_HOME. Nothing work...
0
3,768
Why incompatible version of Java EE error throw from WebSphere?
<p>I was using WebSphere Allication Server version 7.0.0.13 in deploying my application. The war was build using Ant version 1.8.2 to build the war and ear file. When I am installing my application through WebSphere, I hit the following error:</p> <blockquote> <p>The EAR file could be corrupt and/or incomplete. Make su...
0
1,029
getting java.lang.reflect.InvocationTargetException while adding a button to layout
<p>I am totally new in javafx!! I tried a very very simple code and I got stuck. when I tried to add a button to the layout It does not work. I know this question may be too simple but I really do not know how to fix it. I would appreciated if you could help me. This is my code:</p> <pre><code>import javafx.applicatio...
0
1,638
How to use NPM and install packages inside Visual Studio 2017?
<p>I have a simple Visual Studio solution, running ASP.NET Core v2 and building a React app.</p> <p>Now, I want to install a simple component using the NPM. In this particular example, it could be:</p> <pre><code>npm install --save react-bootstrap-typeahead </code></pre> <p>I want this package to work just in my sol...
0
1,123
My Java program is testing if integer is divisible by 3 or 5, but is just printing every integer, how do I fix it?
<p>I am not getting errors at all in my code but it is NOT doing what I want it to - at all. I understand that there is <a href="https://stackoverflow.com/questions/31106668/find-if-a-number-is-divisible-by-3-or-5-fizzbuzz">another question related to divisibility to 3 or 5</a> but I do not think the question relates, ...
0
1,145
Reactjs: how to modify dynamic child component state or props from parent?
<p>I'm essentially trying to make tabs in react, but with some issues.</p> <p>Here's file <code>page.jsx</code></p> <pre><code>&lt;RadioGroup&gt; &lt;Button title="A" /&gt; &lt;Button title="B" /&gt; &lt;/RadioGroup&gt; </code></pre> <p><strong>When you click on button A, the RadioGroup component needs to de...
0
1,512
Install APK using root, handling new limitations of "/data/local/tmp/" folder
<h2>Background</h2> <p>So far, I was able to install APK files using root (within the app), via this code:</p> <pre><code>pm install -t -f fullPathToApkFile </code></pre> <p>and if I want to (try to) install to sd-card :</p> <pre><code>pm install -t -s fullPathToApkFile </code></pre> <h2>The problem</h2> <p>Recen...
0
1,713
Why am I receiving a "Plugin execution not covered by lifecycle configuration with GWT" error?
<p>I'm using STS and I imported a GWT project from another machine. The project uses m2eclipse. I'm getting these two errors when building the project:</p> <pre><code>Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:gwt-maven-plugin:2.2.0:i18n (execution: default, phase: generate-sources) ...
0
1,646
Adding Spaces between words and making every word except the first lowercase in java
<p>I'll go ahead and let you know that yes, this is homework. I have hit a brick wall in completing it however and desperately need help. I'm also pretty new to Java and am still learning the language.</p> <p>Okay, I am trying to write a program that asks the user to enter a sentence with no spaces but have them capit...
0
1,132
sqlalchemy.orm.exc.UnmappedInstanceError: Class 'builtins.dict' is not mapped
<p>I'm trying to insert a new User into a DB using SQLAlchemy and Marshmallow. The <code>user</code> parameter is received from an API endpoint. Everything works until I get to this line in the <code>create</code> function:</p> <pre><code>db.session.add(new_user) </code></pre> <p>The value of the <code>new_user</code...
0
1,617
java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
<p>I'm trying to retrieve the data from the database. When I run the program it shows the error <code>java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException</code> I have the <code>json-lib</code> jar file in my <code>WEB-INF --&gt; lib</code> directory, I don't know why it is show...
0
1,770
Dynamically generate columns in PostgreSQL
<p>I have seen that there are quit a few similar questions like this one, but I havent understood how to code it myself. Please have in mind that I am just a beginner in this field.</p> <p>Basically I want to pivot the table like this:</p> <pre><code>zoom | day | point zoom | 2015-10-01 | 2015-10-02 |...
0
2,619
Spring websocket send to specific people
<p>I have added custom token based authentication for my spring-web app and extending the same for spring websocket as shown below</p> <pre><code>public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { ...
0
1,046
Cannot set headers after they are sent to the client with express-validator, express, mongoose and Next.js
<p>I am building a login/registration form using <a href="https://express-validator.github.io/docs/custom-validators-sanitizers.html" rel="nofollow noreferrer">express-validator</a> and <a href="https://mongoosejs.com/docs/queries.html" rel="nofollow noreferrer">mongoose</a> in <a href="https://nextjs.org/" rel="nofoll...
0
4,501
ASP.NET Core: Create and Open PDF (in browser)
<p>Working in ASP.NET Core and using iTextSharp, I'm building a PDF and save it to the local system. I now want to open that file in the browser but can't seem to make that work since I get a FileStream error in one try and nothing at all in another try.</p> <p>My logic is in the controller below. I've replaced the un...
0
1,707
Rotating a rectangle-shaped Polygon around it's center. (Java)
<p>I have this code to draw a rectangle (Polygon object), and then draw another rectangle which is the original one, rotated 90 degrees, using the rotation matrix.</p> <pre><code>public class DrawingPanel extends JPanel{ public void paintComponent(Graphics g){ super.paintComponent(g); Graphics2D ...
0
1,119
Spring Boot Security CORS
<p>I have a problem with CORS filter on spring security URL's. It doesn't set <code>Access-Control-Allow-Origin</code> and other exposed header on URL's belonging to spring sec (login/logout) or filtered by Spring Security.</p> <p>Here are the configurations.</p> <p><strong>CORS:</strong></p> <pre><code>@Configurati...
0
1,070
java.lang.IllegalArgumentException: No view found for id 0x1020002 (android:id/content) for fragment
<p>I am trying to move from one fragment to another.. It shows following error during fragment transaction-</p> <pre><code> java.lang.IllegalArgumentException: No view found for id 0x1020002 (android:id/content) for fragment PhotosFragment2{41a57218 #3 id=0x1020002} at android.support.v4.app.FragmentMan...
0
4,378
Redirect Loop error in CodeIgniter
<p>I worked on this for a day. I get this <a href="https://stackoverflow.com/questions/9157293/redirect-error-in-codeigniter">same problem</a>, but I don't understand.</p> <pre><code>&lt;?php class Users extends CI_Controller { function index() { redirect('Users/login'); } function login() ...
0
1,729
Partial page rendering with Primefaces - JSF 2.0 navigation
<p>I am trying to create a facelet page which updates <code>&lt;ui:insert&gt;</code> elements with ajax calls. Whenever a <code>&lt;p:commandButton action="next"/&gt;</code> is clicked ajax call should take place and only <code>&lt;ui:insert&gt;</code> parts of the facelet template should be updated. My question is exa...
0
1,614
Use a simple c++ class in Android NDK
<p>I'm trying to learn the basics of Android NDK but I'm stucked when I have to use it with a c++ class.</p> <p>I understand how to use it with a simple function but what should I do to be able to manipulate the fields and the methods of a c++ class ?</p> <p>I'm trying to do it with this simple c++ class :</p> <pre>...
0
1,593
Resize UILabel to fit text inside custom UITableViewCell regardless of width
<p>I'm trying to get a label in a cell to be the right size, regardless of device or orientation. I am able to get the row height to size correctly. I am also able to set the label height correctly in <code>cellForRowAtIndexPath</code>, and can check that in my logs. But, by the time it gets to <code>willDisplayRowAtIn...
0
1,193
AngularJS Controller execute twice
<p>I must add I am working on Sharepoint 2013, visual web part. my ascx:</p> <pre><code>&lt;%@ Control Language="C#" Inherits="SharePoint.BLL.UserControls.VODCatalog, SharePoint.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=81fc048468441ab3" %&gt; &lt;%@ Register TagPrefix="SPWP" Namespace="Microsoft.SharePoin...
0
2,219
How to render a view inside of other twig + Modal Dialog Symfony2
<p>Today I wanna a show a <a href="http://bootboxjs.com/" rel="nofollow">modal dialog</a> with a form</p> <p>This is my code of main:</p> <pre class="lang-html prettyprint-override"><code>&lt;button class="btn btn-primary btn-lg btn-new" data-toggle="modal" data-target="#agregarPunto"&gt; Nueva Ronda &lt;/b...
0
1,181
Allocate exception for servlet Jersey REST Service Error
<p>I'm re-coding a webservice that I've already created so that I can create a "how-to" with git for the other members of my group who will be taking over the project.</p> <p>This time around, I started to get an error when trying to use my webservice and I can't seem to find the problem because the code looks exactly...
0
2,611
IntelliJ Error: java.lang.OutOfMemoryError: GC overhead limit exceeded
<p>I'm running Grails 2.5.0 on IntelliJ Idea Ultimate Edition 2020.2.2 . It compiles and builds the code just fine but it keeps throwing a &quot;java.lang.OutOfMemoryError: GC overhead limit exceeded&quot; error (the entire error is copy and pasted at the end). Here are the things I've tried based off researching this ...
0
6,632