title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Parsing json directly using input stream
<p>I am doing a api call and in response i am getting json. So for that I want to parse it directly through input stream so that there would not be need of storing it in memory. For this I am trying to use JSONReader but that i am unable use for api's less than 11. So i dont know how to proceed with. I want it to be d...
0
2,466
Gradle: Project "x" not found in root project "myProject"
<p>Having upgraded to Android Studio from Eclipse I wanted to update my TouchDB library which is now <a href="https://github.com/couchbase/couchbase-lite-android" rel="nofollow">Coubasebase-lite-android</a>. I removed TouchDB from my project, git cloned couchbase-lite-android added to my project in Android Studio via F...
0
2,850
Docker: How to fix "Job for docker.service failed because the control process exited with error code"
<p>I'm trying to use docker in Manjaro (my kernel version is 4.19) and it is not working.</p> <p>After running <code>sudo pamac install docker</code> I run <code>sudo systemctl start docker.service</code> and receive this message:</p> <pre><code>Job for docker.service failed because the control process exited with er...
0
1,047
"img" must be terminated by the matching end-tag
<p>When parsing some an XSL XML file using docx4j, I keep receiving this error: </p> <blockquote> <p>'The element type "img" must be terminated by the matching end-tag <code>"&lt;/img&gt;"</code>. Exception Error in Docx4JException'</p> </blockquote> <p>I have tried all sorts of combinations to solve the issue but ...
0
1,996
Springboot could not extract ResultSet
<p>Currently I am getting a problem with fetching mysql data for my springboot project:</p> <p>There was an unexpected error (type=Internal Server Error, status=500). could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet</p> <p><strong>Tes...
0
1,549
How do you dynamically create an AWS IAM policy document with a variable number of resource blocks using terraform?
<p>In my current terraform configuration I am using a static JSON file and importing into terraform using the file function to create an AWS IAM policy.</p> <p>Terraform code:</p> <pre><code>resource "aws_iam_policy" "example" { policy = "${file("policy.json")}" } </code></pre> <p>AWS IAM Policy definition in JSON...
0
1,038
Angular 7 - Reload / refresh data different components
<p>How to refresh data in different component 1 when changes made in component 2. These two components are not under same parentnode.</p> <p><strong>customer.service.ts</strong></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="...
0
1,129
Add embedded image in emails in AWS SES service
<p>I am trying to write a Java app which can send emails to specify emails. In the email i also want to attach some pic.</p> <p>Please find my code below :-</p> <pre><code>public class AmazonSESSample { static final String FROM = "abc@gmail.com"; static final String TO = "def@gmail.com"; static final Str...
0
1,223
Running multiple async queries with ADODB - callbacks not always firing
<p>I have an Excel workbook that fires three queries to a database to populate three tables on hidden sheets, and then runs three 'refresh' scripts to pull this data through to three visible presentation sheets (one per query). Running this synchronously is quite slow: The total time to refresh is the sum of the time o...
0
1,532
ClassPathResource cannot access my spring properties file (using Spring web MVC)
<p>The actual location of the file is in "D:\eclipse\projects\issu\src\main\webapp\WEB-INF\spring\spring.properties"</p> <p>I tried:</p> <pre><code>Resource resource = new ClassPathResource("/src/main/webapp/WEB-INF/spring/spring.properties"); Resource resource = new ClassPathResource("/WEB-INF/spring/spring.propert...
0
2,151
Stratified sampling with Random Forests in R
<p>I read the following in the documentation of <code>randomForest</code>:</p> <blockquote> <p>strata: A (factor) variable that is used for stratified sampling.</p> <p>sampsize: Size(s) of sample to draw. For classification, if sampsize is a vector of the length the number of strata, then sampling ...
0
1,131
how to drag and drop files from a directory in java
<p>I want to implement dragging and dropping of files from a directory such as someones hard drive but can't figure out how to do it. I've read the java api but it talks of color pickers and dragging and dropping between lists but how to drag files from a computers file system and drop into my application. I tried writ...
0
1,720
Butterknife is unable to bind inside my Adapter Class
<p>I have an Adapter that draws the layouts for my Navigation Drawer. My navigation drawer contains two inner xml files: One being the <code>Header</code> and the other being the <code>Row</code>. I draw these out in a single adapter, but when I'm trying to <code>setText()</code> on my header, I get failure to bind. He...
0
1,187
Problems with unixODBC and FreeTDS config
<p>I have been working on this for way too long and can't seem to figure it out. I am sure I have something wrong in my freetds.conf, odbc.ini or odbcinst.ini. I can connect to my mssql 2008 server using tsql, but still can't with isql or of course through php.</p> <p>I am on CentOS 5.6.</p> <p>Can anyone offer some ...
0
1,550
jQuery Validation plugin: submitHandler not preventing default on submit when making ajax call to servlet - return false not working
<p>I have a simple form that uses jquery and a servlet. The jquery makes an ajax call to the servlet, the servlet makes some server side calculations, then displays the results on the same page via jQuery. I don't want the form to do a default submit (and go to the servlet) because I want to stay on the same page and...
0
1,155
C# MemoryStream - Timeouts are not supported on this stream
<p>I'm trying to create a csv file dynamially and output the stream to the browser.</p> <p>Here is my api end point:</p> <pre><code> [System.Web.Http.HttpGet] [System.Web.Http.Route("export-to-csv")] public FileStreamResult ExportDeposits([FromUri(Name = "")]DepositSearchParamsVM depositSearchParamsVM) ...
0
1,662
The entity or complex type ... cannot be constructed in a LINQ to Entities query
<p>Why does one method work but not the other, when it seems they are both doing the same thing, i.e. constructing an entity. My question then, is there a way to construct the entity in a L2E query instead of having to use just Linq or indeed both?</p> <p>This works fine...</p> <pre><code>var queryToList = (from ac i...
0
1,379
ClassNotFoundException: Didn't find class "com.google.android.gms.ads.AdView"
<p>I did a lot of research and this seems to be a common error for many users but for very different reasons. None of which I found worked for me.</p> <p>I'm getting</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{ [...]/[...].activities.StartActivity}: android.view.InflateException:...
0
1,905
Which .NET collection is faster: enumerating foreach Dictionary<>.Values or List<>?
<p>Are one of these enumerations faster than the other or about the same? (example in C#)</p> <p>Case 1:</p> <pre><code>Dictionary&lt;string, object&gt; valuesDict; // valuesDict loaded with thousands of objects foreach (object value in valuesDict.Values) { /* process */ } </code></pre> <p>Case 2:</p> <pre><code>...
0
5,204
Spring Boot Microservice cant connect to Eureka Server
<p>I try to connect my service (auth-service) to the Eureka Server for the service registry. The Eureka server is running, but when I try to connect the auth-service nothing happens.</p> <p>I added the configurations to application.yaml and application.properties, but nothing helped.</p> <p>application.yaml from auth...
0
4,721
How to set linker flags for OpenMP in CMake's try_compile function
<p>I would like to verify that the current compiler can build with openmp support. The application has do deploy across a wide variety of unix systems, some of which might have old versions of OpenMP, and I would like to test for important OpenMP functionality. So, I want to build a test source file that incorporates...
0
1,139
System.DirectoryServices.DirectoryServicesCOMException: An operations error occurred
<p>I have the same web app working in three others servers. Anyone have any idea why is not working in the 4th server? See the error and stacktrace:</p> <blockquote> <p><em>An operations error occurred.</em></p> <p><em>Description: An unhandled exception occurred during the execution of the current web reques...
0
2,221
COBOL Program to read a flat file sequentially and write it to an output file, not able to read at all loop is going infinite
<p>I'm trying to write COBOL Program to read a flat file sequentially and write it to an output file, I'm able to read only one record at a time, not able to read next record what should I do?</p> <p>Here is my code:</p> <pre><code>PROCEDURE DIVISION. OPEN INPUT FILEX. ...
0
5,610
Connecting to telnet server and send/recieve data
<p>So I am trying to connect to my telnet server, which works. It recives the first lot of data from the server which is us being asked to enter password to connect. But when I type in the password it does nothing and nothing that is recieved is printed to my console.</p> <p>An example of the output is as follows:</p>...
0
1,259
Using std::ostream as argument to a print function
<p>I have always used <code>cout</code> to print the statement but now I want learn printing by <code>passing the stream</code>, something like <code>void print(std::ostream&amp;) const;</code> my current print function looks like</p> <pre><code>template &lt;class T&gt; void Mystack&lt;T&gt;::print() { for (int ...
0
5,633
Codeigniter Pagination From Database limit, offset
<p>I started a web application in CI 3.0, everything working smooth, I got my pagination working, but there is a problem wich I cannot figure out...</p> <p>For example, I have the following URL: <strong>localhost/statistics/api_based</strong> When navigate, $query results are displayed, links are generated, OK. But, w...
0
1,609
MSB3411 Could not load Visual C++ component
<p>I have MS Visual Studio 2012 Ultimate and OS is Windows 7, and have nodeJs installed.I wanted to install socket.io using npm,but I get the following error.</p> <pre><code>C:\Users\NEW&gt;npm install socket.io npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm htt...
0
1,210
Flutter - Container width and height fit parent
<p>I have a <code>Card</code> widget which includes <code>Column</code> with several other Widgets. One of them is <code>Container</code>.</p> <pre><code>Widget _renderWidget() { return Column( children: &lt;Widget&gt;[ Visibility( visible: _isVisible, child: Container( ...
0
2,391
invokedynamic requires --min-sdk-version >= 26
<p>Today downloaded the studio 3.0 beta 2.0 version, after that tried to open an existing project in it and faced some difficulties, most of them I could solve with the help of Google and Stack Overflow, but this one I can not. </p> <pre><code>Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebu...
0
3,080
How Should VSCode Be Configured To Support A Lerna Monorepo?
<p>I have a <a href="https://github.com/lerna/lerna" rel="noreferrer">lerna</a> monorepo containing lots of packages.</p> <p>I'm trying to achieve the following:</p> <ol> <li>Ensure that VSCode provides the correct import suggestions (based on package names, not on relative paths) from one package to another.</li> <l...
0
1,954
How can I dynamically name an array in Javascript?
<p>I am using jQuery and JSON to pull data from a database. Each row of the database is a different product and each product has a number of properties associated with it.</p> <p>What I'm trying to do in js, is create a named array for each product containing all of the products properties. I know how to pull the data...
0
1,030
Knockout.js mapping JSON object to Javascript Object
<p>I have a problem mapping a Json object recieved from the server into a predefined Javascript-object which contains all the necessary functions which are used in the bindings</p> <p>Javascript code is the following</p> <pre><code>function Person(FirstName, LastName, Friends) { var self = this; self.FirstNam...
0
1,296
android: Data refresh in listview after deleting from database
<p>I have an application which retrieves data from DB and displays it in a list view. I have a custom adapter for the same. So when I press the "delete" button, a delete button for each row in the list is displayed. If I press that, the particular row gets deleted in the DB and the same should be reflected in the listv...
0
1,568
Oracle VirtualBox terminated unexpectedly, with exit code -1073741819 (0xc0000005)
<p>My VirtualBox virtual machine suddenly doesn't work, instead producing an error. I don't know what is causing this error; I searched Google for a solution, but failed. I have already reinstalled it, uninstalled, rebooted and reinstalled, but to no avail.</p> <p>What can I do to solve this problem?</p> <h2>Logs:</h...
0
7,857
Using javascript to set value of hidden field then access value from serverside c# code
<p>I am using a nested html unordered list styled as a drop down. When the a tag within the inner lists list item is clicked it trigger some javascript which is supposed to set the value of a hidden field to the text for the link that was clicked.</p> <p>The javascript seems to work - I used an alert to read the value...
0
1,192
How to Disable future dates in Android date picker
<p>How to Disable future dates in Android date picker</p> <p>Java Code :</p> <pre><code>mExpireDate.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // To show current date in the datepicker final Calendar mcurrentDate = Calen...
0
1,105
Open downloaded file on Android N using FileProvider
<p>I've got to fix our App for Android N due to the FileProvider changes. I've basically read all about this topic for the last ours, but no solution found did work out for me.</p> <p>Here's our prior code which starts downloads from our app, stores them in the <code>Download</code> folder and calls an <code>ACTION_VI...
0
1,594
Python: simple list merging based on intersections
<p>Consider there are some lists of integers as:</p> <pre><code>#-------------------------------------- 0 [0,1,3] 1 [1,0,3,4,5,10,...] 2 [2,8] 3 [3,1,0,...] ... n [] #-------------------------------------- </code></pre> <p>The question is to merge lists having at least one common element. So the results only for the ...
0
1,104
Prevent redirect to /Account/Login in asp.net core 2.2
<p>I am trying to prevent the app to redirect to <code>/Account/Login</code> in asp.net core 2.2 when the user isn't logged in.</p> <p>Even though i write <code>LoginPath = new PathString(&quot;/api/contests&quot;);</code> any unauthorized requests are still redirected to <code>/Account/Login</code></p> <p>This is my S...
0
3,603
ESLint error - ESLint couldn't find the config "react-app"
<p>Me with my team, start a new React Project using the create-react-app bootstrap command. We add the eslint section on the project but we stuck with annoying error that we never found it before now. When we launch the command </p> <pre><code> yarn run lint </code></pre> <p>Here the error: <a href="https://i.stack....
0
1,679
How is geom_point removing rows containing missing values?
<p>I'm unsure why none of my data points show up on the map.</p> <pre><code> Store_ID visits CRIND_CC ISCC EBITDAR top_bottom Latitude Longitude (int) (int) (int) (int) (dbl) (chr) (fctr) (fctr) 1 92 348 14819 39013 76449.15 top 41.731373 -93.58184 2 2035 ...
0
1,585
Segmentation fault in libcurl, multithreaded
<p>So I've got a bunch of worker threads doing simple curl class, each worker thread has his own curl easy handle. They are doing only HEAD lookups on random web sites. Also locking functions are present to enable multi threaded SSL as documented <a href="http://www.openssl.org/docs/crypto/threads.html" rel="noreferrer...
0
2,407
Rails assign session variable
<p>Hi I'm hacking around Rails the last 8 months so don't truly understand a number of things. I've seen and used helper methods that set the current_user etc. and am now trying to replicate something similar. </p> <p>I'm trying to set a global value in the application controller for the current company the user is in...
0
3,821
Why eslint consider JSX or some react @types undefined, since upgrade typescript-eslint/parser to version 4.0.0
<p>The context is pretty big project built with ReactJs, based on eslint rules, with this eslint configuration</p> <pre><code>const DONT_WARN_CI = process.env.NODE_ENV === 'production' ? 0 : 1 module.exports = { extends: [ 'eslint:recommended', 'plugin:jsx-a11y/recommended', 'plugin:react/recommended', ...
0
2,894
C++ Inner class not able to access Outer class's members
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/486099/can-inner-classes-access-private-variables">Can inner classes access private variables?</a><br> <a href="https://stackoverflow.com/questions/11405069/inner-class-accessing-outer-class">Inner class accessin...
0
1,067
How to propagate errors through catchError() properly?
<p>I wrote a function that is <code>pipe</code>-able:</p> <pre class="lang-ts prettyprint-override"><code>HandleHttpBasicError&lt;T&gt;() { return ((source:Observable&lt;T&gt;) =&gt; { return source.pipe( catchError((err:any) =&gt; { let msg = ''; if(err &amp;&am...
0
1,282
Partial results using speech recognition
<p>I created a simple application inspired by <a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html" rel="nofollow">this example</a> in order to test all the available options (ie extra). I read about the <a href="http://developer.android.com/reference/a...
0
1,341
Pandas: for loop through columns
<p>My data looks like: </p> <pre><code>SNP Name ss715583617 ss715592335 ss715591044 ss715598181 4 PI081762 T A A T 5 PI101404A T A A T 6 PI101404B T A A T 7 PI135624 T A...
0
1,616
How to color sliderbar (sliderInput)?
<p>I tried to make different color for a few sliderInput bar in R shiny. It requires css etc. I looked online and can only find how to make one <code>sliderInput</code>. How can I make create several different color to different bars?</p> <p>Here are my testing code. It will show all bar in same style:</p> <pre><code> ...
0
1,122
Module AppRegistry is not a registered callable module
<p>I'm starting with React Native development and I encountered an issue in the very beginning. When trying to run my app I get errors:</p> <blockquote> <p>Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)<br> Unhandled JS Exception: Invariant Violation: Native mo...
0
1,062
Home directory does not exist JBOSS
<p>I'm trying to run jboos as 7.1 and when I run the standalone.bat I get this error. I have configured everything as you can see here:</p> <pre><code>Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat" =============================================================================== JBoss Bootstrap Environment ...
0
1,848
Communications link failure due to: java.io.EOFException
<p>My webapp is running on Tomcat 5.5, I declared the datasource in web.xml:</p> <pre><code>&lt;resource-ref&gt; &lt;res-ref-name&gt;jdbc/OrdiniWebDS&lt;/res-ref-name&gt; &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt; &lt;res-auth&gt;Container&lt;/res-auth&gt; &lt;res-sharing-scope&gt;Shareable&...
0
1,079
How Can I Fix "TypeError: Cannot mix str and non-str arguments"?
<p>I'm writing some scraping codes and experiencing an error as above. My code is following.</p> <pre><code># -*- coding: utf-8 -*- import scrapy from myproject.items import Headline class NewsSpider(scrapy.Spider): name = 'IC' allowed_domains = ['kosoku.jp'] start_urls = ['http://kosoku.jp/ic.php'] ...
0
1,159
Javascript TypeError: xxx is not a function
<p>Friends I came to a bit of problem. Everything was working fine before. But I can't rectify why it starts giving me such error.<br> Here is my JavaScript Code:</p> <pre><code>function newSupplier() { $('div#AddSupplier div.msg').html('').hide(); $('div#AddSupplier div.loader').show(); registerSupplier($...
0
8,537
Failed to build Android app (refer to both ActionBarSherlock & ViewPagerTabs) with Ant
<p>I have one Android app which uses ActionBarSherlock &amp; ViewPagerTabs. I use Eclipse to write and build it, and it just works well until I try to build it with Ant. Here's what I did:</p> <ol> <li>go to ActionBarSherlock folder, run "android update <strong>lib-project</strong> --path ."</li> <li>go to ViewPagerTa...
0
1,357
send JSON to server via HTTP put request in android
<p>How to wrap given json to string and send it to server via Http put request in android?</p> <p>This is how my json look like. </p> <pre><code> { "version": "1.0.0", "datastreams": [ { "id": "example", "current_value": "333" }, { "id": "key", ...
0
1,339
How should I use ejs to render table vertically?
<p>I have an array like the following:</p> <pre><code>quotation: [{ "dimension" : 0, "currency": "RMB", "quantity": "100", "price": "3", "factory": "rx"}, { "dimension" : 0, "currency": "RMB", "q...
0
1,549
'GridView1' fired event PageIndexChanging which wasn't handled
<p>I am using a gridview and I want to use paging. I have already set allow paging to true and page size to 5. I can see the numbers at the base of my gridview, but when i click on a number to move to respective page, it throws an error saying:</p> <p><code>The GridView 'GridView1' fired event PageIndexChanging whic...
0
2,139
Why my turn server doesn't work?
<p>I can connect in any situation when using <a href="https://appr.tc" rel="noreferrer">appr.tc</a> ice servers (google turn servers). but i can't connect with my own turn server. I did config my own turn server by <code>coturn project</code>. </p> <p>I'm using google's <code>libjingle_peerconnection</code> api to cre...
0
3,534
problems after installing java 8
<p>Android Studio had a popup telling updates was available after i run the SDK manager and started the Android Studio again I got another popoup that toke me to Androids website where it told me that I should upgrade to Java JDK 8 and JRE 8 after I did i got over 235 errors when try to run the debug. I uninstalled ver...
0
1,441
Implementing a slider (SeekBar) in Android
<p>I want to implement a slider, which is basically two lines, one vertical and one horizontal, crossing where the screen is touched. I have managed to make one but I have to issues:</p> <ol> <li>The slider is not very smooth, there is a slight delay when I'm moving the finger</li> <li>If I place two sliders it is not...
0
2,340
How to take values of only selected checkbox in Action class in Struts 2 and JSP
<p>I am displaying 24 checkboxes. I want to get all the values of checked checkboxes in action class and insert it as a new record inside database.Inserting will be done once I succeed in getting the values of checked checkboxes on button click.</p> <p>I referred <a href="https://stackoverflow.com/questions/6800008/how...
0
10,382
jQuery post a serialized form then inserting into mysql via php?
<p>I'm trying to post a serialized form to a sumbit.php file, in turn, will then insert into a MySQL database; however, the last input which is hidden, is not getting inserted into the database, though the rest are.</p> <p>Here's some snippet examples of what I've got thus far which is not working: </p> <p><strong>H...
0
1,170
Tee does not show output or write to file
<p>I wrote a python script to monitor the statuses of some network resources, an infinite pinger if you will. It pings the same 3 nodes forever until it receives a keyboard interrupt. I tried using tee to redirect the output of the program to a file, but it does not work:</p> <pre><code>λ sudo ./pingster.py 15:43:33 ...
0
1,109
Spark SQL UNION - ORDER BY column not in SELECT
<p>I'm doing a UNION of two temp tables and trying to order by column but spark complains that the column I am ordering by cannot be resolved. Is this a bug or I'm missing something?</p> <pre class="lang-scala prettyprint-override"><code>lazy val spark: SparkSession = SparkSession.builder.master(&quot;local[*]&quot;).g...
0
1,623
log4j.xml Rolling Appender based on size
<p>Please find below my log4.xml configuration for rolling file appender</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt; &lt;log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'&gt; &lt;appender name="instrumentationAppender" cla...
0
1,689
Removing Previous Button on First Step jQuery Steps
<p>I'm using jQuery Steps for my site signup wizard, works awesome with the exception that on the first step I'm getting the previous button, which really makes no sense since there is no previous content.</p> <p>I looked at the <code>onInit()</code> function in the API but there is no setting for <code>enablePrevious...
0
1,116
Why is std::unordered_map slow, and can I use it more effectively to alleviate that?
<p>I’ve recently found out an odd thing. It seems that calculating Collatz sequence lengths with <a href="http://melpon.org/wandbox/permlink/xpx3rSzV6thjfz1q" rel="noreferrer">no caching at all</a> is over 2 times <em>faster</em> than <a href="http://melpon.org/wandbox/permlink/Omhqamehs2P6y7Or" rel="noreferrer">using ...
0
1,390
Reading from a cryptostream to the end of the stream
<p>I'm having some trouble with the code below. I have a file in a temporary location which is in need of encryption, this function encrypts that data which is then stored at the "pathToSave" location.</p> <p>On inspection is does not seem to be handling the whole file properly - There are bits missing from my output ...
0
1,238
How to force FormRequest return json in Laravel 5.1?
<p>I'm using <a href="http://laravel.com/docs/5.1/validation#form-request-validation">FormRequest</a> to validate from which is sent in an API call from my smartphone app. So, I want FormRequest alway return json when validation fail.</p> <p>I saw the following source code of Laravel framework, the default behaviour ...
0
1,654
attempting to reference a deleted function
<p>I'm trying to learn about the fstream class and I'm having some trouble. I created a couple of txt files, one with a joke and the other with a punchline (joke.txt) and (punchline.txt) just for the sake of reading in and displaying content. I ask the user for the file name and if found it should open it up, clear the...
0
1,416
keras error on predict
<p>I am trying to use a keras neural network to recognize canvas images of drawn digits and output the digit. I have saved the neural network and use django to run the web interface. But whenever I run it, I get an internal server error and an error on the server side code. The error says <strong>Exception: Error when ...
0
1,937
How to setup conditionals for BPMN2 Exclusive Gateway
<p>I'm using Camunda BPMN2 for the first time in my spring project and trying to get my head around a couple of things ...</p> <p>In my applicationContext, I have the following block to setup Camunda:</p> <pre><code> &lt;!-- Setup BPMN Process Engine --&gt; &lt;bean id="processEngineConfiguration" class="org.c...
0
2,814
Rock-paper-scissors game c++
<p>Rock-paper-scissors game c++ doesn't display the cout to tell who win the game, i dont know what wrong and why is the program doesn't show the cout. Please let me know whats wrong and how to fix it and why it happened and i think the cstdlib is doing nothing there.</p> <blockquote> <p>Objective: To score the rock...
0
1,054
SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)
<p>I am seeing this in several situations and it is intermittent in our web based application connecting to SQL 2008 R2 serve back end. Users are coming across a point 2 point connection and seeing this on and off. Thought it was bandwidth issues until I started seeing it on terminal servers that are on the same core ...
0
1,429
How would I catch and deal with "undefined" from parsed json object
<p>I'm trying to populate a spreadsheet from a RESTful service and sometimes there's no such property so I get an "undefined" in my spreadsheet and the script stops and gives an error. I have no clue as to how to go about dealing with it, or skipping over the "undefined" part.</p> <p>Here's a sample query in json</p> ...
0
1,247
Reading httprequest content from spring exception handler
<p>I Am using Spring's <code>@ExceptionHandler</code> annotation to catch exceptions in my controllers.</p> <p>Some requests hold POST data as plain XML string written to the request body, I want to read that data in order to log the exception. The problem is that when i request the inputstream in the exception handle...
0
1,707
How to use Firebase Realtime Database for Android Google Map app?
<p>I'm trying to work on Firebase <code>Realtime Dataase</code> access to my map's Markers which includes <code>dob</code>, <code>dod</code>, <code>name</code>, <code>latitude</code> , <code>longitude</code>, etc. And I want to use Full name as the title of marker, as well as dob and dod for the snippet of marker. </p>...
0
1,901
Getting "Caused by: java.lang.VerifyError:"
<p>I created an android application which is used as library in another android application. I used some third party jars in the android app which acts as a library. When I link this library in my android application and run it, I am getting the verify error when it tries to access the class present in the library. May...
0
1,810
select records from postgres where timestamp is in certain range
<p>I have arrival column of type timestamp in table reservations ( I'm using postgres ). How would I select all dates within this year for example?</p> <p>I know I could do something like this:</p> <pre><code>select * FROM reservations WHERE extract(year from arrival) = 2012; </code></pre> <p>But I've ran <strong>an...
0
1,144
Why doesn't my <script> tag work from php file? (jQuery involved here too)
<p>Here is what I am trying to accomplish. I have a form that uses jQuery to make an AJAX call to a PHP file. The PHP file interacts with a database, and then creates the page content to return as the AJAX response; i.e. this page content is written to a new window in the success function for the <code>$.ajax</code> ca...
0
1,853
how to dynamically add swt widgets to a composite?
<p>I'm trying to add widgets like text boxes, buttons to a composite on click of a button. I've tried , but i could only add these widgets dynamically only up to the size of the composite. My jface dialog is such that, it has a scrolled composite in which it holds a composite. In the main composite i have 3 other compo...
0
2,598
_M_ construct null not valid error when trying to implement multi threaded queue
<p>I am trying to implement a priority queue using using a simple linear approach as explained in <a href="https://rads.stackoverflow.com/amzn/click/com/B008CYT5TS" rel="nofollow noreferrer" rel="nofollow noreferrer">Art of Multiprocessor programming</a>. I'm new to c++ and have difficulty troubleshooting.</p> <p>I've ...
0
2,035
Downloading Xcode with wget or curl
<p>I am trying to download Xcode from the Apple Developer site using just wget or curl. I think I am successfully storing the cookie I need to download the .dmg file, but I am not completely sure.</p> <p>When I run this command:</p> <pre><code>wget \ --post-data="theAccountName=USERNAME&amp;theAccountPW=PASSWOR...
0
1,202
React Material UI Multiple Collapse
<p>Currently my list all have collapses but they are linked to one state for "open" so if I open one list, all the other lists open. What is the best way to keep the collapses separate from each other without having a lot of states for each list.</p> <p>EDIT: The app is going through an infinite loop</p> <p><strong>A...
0
1,792
Visual C++ template syntax errors
<p>I have a header file...</p> <pre><code>#include &lt;SFML\Graphics.hpp&gt; #include &lt;SFML\Graphics\Drawable.hpp&gt; #include &lt;SFML\System.hpp&gt; #include &lt;iostream&gt; #ifndef _SPRITE_H_ #define _SPRITE_H_ namespace Engine { template &lt;class T&gt; class Sprite { sf::Vector2&lt;T&gt...
0
1,257
JSF h:selectOneMenu trouble: java.lang.IllegalArgumentException Cannot convert "string" of type class java.lang.String to interface java.util.List
<p>I have some JSF-trouble using h:selectOneMenu with a list from my backend bean: My xhtml file looks like this:</p> <pre><code> &lt;f:view&gt; &lt;h:form id="serverOptions"&gt; &lt;h:selectOneMenu id="preset" value="#{overview.pdfPresets}" &gt; &lt;f:selectItems value="#{overview.pdfPresets}" /&gt...
0
1,658
VBA Excel - Compile Error Object Required
<p><strong>Disclosure: I'm fairly inexperienced at coding of most sorts but have a reasonable understanding of the logic behind it and quite often just need a little push with getting syntax's right etc.</strong></p> <p><strong>I posted the same code earlier but with a different problem and have no discovered this iss...
0
1,108
Disable all dialog boxes in Excel while running VB script?
<p>I have some code in VB that saves all XLSM files as XLSX. I already have the code that will do that for me, but dialog boxes show up for every action. This was fine for a few dozen files. However, I'm going to use this on hundreds of XLSM files at once, and I can't just sit at my computer all day clicking dialog box...
0
1,191
Matplotlib backend missing modules with underscore
<p>I've been using matplotlib for some time without problems. It's been a while since i needed the interactive plot functions (for which Tkaag was used). Since then i updated matplotlib a few times.</p> <p>I tried to use it today, but it spawned an error.</p> <pre><code>/usr/local/lib/python2.7/dist-packages/matplotl...
0
2,598
How to refresh Material-Table (Material-ui) component in ReactJS when data changes
<p>I am using material-table in my ReactJS project, and I checked it documentation and I don't have a clue how to refresh the table when the data is continuously changing (like every 500ms or so). I appreciate any information. </p> <p>The below code is of the data table that I am trying to use. After creating the data...
0
2,197
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
<p>I have the following connector configuration in <code>server.xml</code>:</p> <pre><code>&lt;Connector SSLEnabled="true" clientAuth="true" keystoreFile="${user.home}/kstore.jks" keystorePass="1234567" maxThreads="150" port="8443" protocol="org.apache.coyote.http11.Http11Protocol" scheme="http...
0
3,540
Typescript build getting errors from node_modules folder
<p>I am running a typescript build and getting errors in node_modules. Why isn't it ignoring this folder? I have it in the exclude section of my tsconfig.json. The really strange thing is that I have another project that I have done a file comparison with and it does not throw these errors even though gulpfile.js, t...
0
3,398
spl_autoload_register not working
<p>I have created 5 folders containing 5 classes (Ad_Class, Blocked_Class, Friend_Class, Image_Class, Profile_Class) in the main directory. I also created the respective classes within the mentioned folders with the exact name as the folders. i.e. if folder name is Ad_Class then the class within the folder is also the ...
0
2,334
Adding ripple effect for View in onClick
<p>Hello I am trying to add a ripple effect onClick method for View, but this one no working. All my items having an ID, but I don't know how to call it</p> <p>Here is a code.</p> <pre><code> @Override public void onClick(View v) { int[] attrs = new int[]{R.attr.selectableItemBackground}; TypedArray typedArra...
0
3,495
Koin Android: org.koin.error.NoBeanDefFoundException
<p>Got that message error</p> <pre><code>java.lang.RuntimeException: Unable to create application com.app.name.application.MainApplication: org.koin.error.BeanInstanceCreationException: Can't create bean Bean[class=com.app.name.general.preferences.Preferences] due to error : org.koin.error.NoBeanDefFoundException:...
0
1,059
C# How To Separate Login For Admin And User
<p>So basically Admin and User goes to different windows, here's the code</p> <pre><code>private void cmdEnter_Click(object sender, EventArgs e) { if (txtUsername.Text == "" &amp;&amp; txtPassword.Text == "") //Error when all text box are not fill { MessageBox.Show("Unab...
0
1,498
Hibernate Session is closed in spring transaction after calling method second time
<p>First of all I am a beginner in spring.I have created a simple Spring service that has DAO injected and transaction is managed by HibernateTransactionManager of spring, like as below.(And transaction configuration is used using annotations )</p> <pre><code>@Service(value="daopowered") public class UserServiceImplDa...
0
1,711
Cloudformation S3bucket creation
<p>Here's the cloudformation template I wrote to create a simple S3 bucket, How do I specify the name of the bucket? Is this the right way?</p> <pre><code>{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Simple S3 Bucket", "Parameters": { "OwnerService": { "Type": "String", "Default": ...
0
1,156
Getting bad_array_new_length error when trying to load a text file into a dynamically allocated 2d array
<p>So the issue I'm having with this code is that when I run it, I get the error: <code>terminate called after throwing an instance of "std:bad_array_new_length" what(): std:: bad_array_new_length</code> There are no errors otherwise and the code compiles just fine. Below is the text file I'm trying to load:</p> <pre>...
0
1,234