title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
TSQL Performance issues using DATEADD in where clause | <p>I have a query using the DATEADD method which takes a lot of time.
I'll try to simplify what we do.
We are monitoring tempretures and every 5 minutes we store the highest temp and lowest temp in
table A</p>
<p>Date | Time ... | 1 | 1,512 |
Using NSXMLParser initWithStream: no parser delegate methods received | <p>The basic problem I'm working on is using the <code>NSStream</code> classes to parse incoming incremental XML data. The data is never a complete XML Document, but I want to receive and process it in incremental chunks based off how much ever the socket can read.</p>
<p>Looking at the documentation for <code>NSXMLPa... | 1 | 1,966 |
Unresolved reference: firebasemessaging | <p>Getting this error i have try to fixed this ref:<a href="https://stackoverflow.com/questions/65408738/application-kt-unresolved-reference-firebasemessaging">Application.kt: Unresolved reference: firebasemessaging</a> but didnt work so i need to posted again i also tried to delete the application.kt file but didnt wo... | 1 | 5,297 |
How to extend IdentityUser as a claim in ASP.NET Core / MVC 6 / EF7? | <p>I am building a site that has Users that belong to an Account. The account is identified by an AccountId which is a foreign key for most data in the DB such as Charges (associated to an Account) or Receipts (associated to an Account).</p>
<p>Rather than hitting the DB every time the repository needs to be polled fo... | 1 | 1,024 |
Using Tailwind CSS with esbuild - the process | <p>What does it mean to use a plugin to a bundler to perform some work, I mean I have no experience with bundlers whatsoever yet and I wanted to learn about that by creating a "professional" workflow with esbuild and tailwindcss with react, typescript and all the goodies and I am stuck on connecting tailwind ... | 1 | 2,994 |
Primefaces Dialog - Setter not found for property class | <p>I want to implement the Primefaces 3.5 <a href="http://www.primefaces.org/showcase/ui/dialog.jsf" rel="nofollow">Dialog Component</a>. </p>
<p>My implemetation:</p>
<pre><code><div class="span10">
<div class="well well-large">
<h:panelGrid columns="1" cellpadding="5">
... | 1 | 4,065 |
Android LinearLayout: not displaying correct height | <p>I have a LinearLayout with a white background,filled with a bunch of LinearLayouts and RelativeLayouts. I've tried to set the parent layout to have a minimum height, but it still seems to be wrapping to the content.</p>
<p>Here's a picture of what it looks like now. The white space should have a set minimum height ... | 1 | 1,592 |
Who has a material how to work with the Face Detection Camera 2 API? | <p>On the official sources did not find the information ... There are many examples of how to work with the Camera API, but how to work with Camera2API anything ... a couple of discussions at Stake and all ... there is a similar question to me, but I have a problem not solved. ..</p>
<p><strong>link to the same quetio... | 1 | 3,575 |
Failed to submit local jar to spark cluster: java.nio.file.NoSuchFileException | <pre><code>~/spark/spark-2.1.1-bin-hadoop2.7/bin$ ./spark-submit --master spark://192.168.42.80:32141 --deploy-mode cluster file:///home/me/workspace/myproj/target/scala-2.11/myproj-assembly-0.1.0.jar
Running Spark using the REST application submission protocol.
Using Spark's default log4j profile: org/apache/spark/lo... | 1 | 1,639 |
Android RecyclerView -Multiple Edittext change simultaneously | <p>I have a <code>RecyclerView</code> that has many cards that hold 4 <code>EditText</code>. When I input values in one <code>EditText</code> of one card, it fills the same value in random cards. Surprisingly it does not jump <code>EditText</code>s for example:</p>
<p>If I input values in <code>edittext1</code> of <co... | 1 | 3,315 |
Game about a car which has to cover 100km distance | <p>This is my assignment:</p>
<blockquote>
<p>There is a car with 30L of petrol.</p>
<p>It needs to travel from 0 to 100 KMs.</p>
<p>The car moves in steps, at each step car can move between 0 KM to 6 KM
(generate a random number).</p>
<p>The car has a mileage of 1 KM/L.</p>
<p>You can place 5 random petrol pumps on th... | 1 | 5,317 |
Thread dies inexplicably | <p>I have a Java process that has recently started using up 100% CPU time. Using <code>jdb</code> I discovered this was caused by a <code>ThreadPoolExecutor</code> repeatedly creating threads.</p>
<p>The executor in question is defined as:</p>
<pre><code>private final ScheduledExecutorService _scheduler = Executors.n... | 1 | 3,229 |
Using Azure redis.cache to store MVC application session across load balance service | <p>I have an Azure PaaS that I want to configure for high availability and I have added another role to the instance and now I need to configure ASP.Net session to be stored within a distributed cache. I have found the following information in regards to how to use the cache:</p>
<p><a href="http://azure.microsoft.com... | 1 | 2,469 |
mercurial subrepos at the current revision of a specific branch | <p>I'm quite new to mercurial, I've read a lot of topics on this subject but I still can't understand if I can achieve what I'm trying to do.</p>
<p>Basically I'd be interested in cloning the current revision of a branch from a main repository and its subrepos in a single command (acting on the main repo). I will try ... | 1 | 1,895 |
Welcome to Nginx page displays instead of actual webpage | <p>I am working on a Ruby on Rails project on an Ubuntu server. Whenever I try and access the app, I am always greeted with:</p>
<blockquote>
<p>Welcome to nginx!</p>
<p>If you see this page, the nginx web server is successfully installed and working. Further configuration is required.</p>
</blockquote>
<p>Her... | 1 | 1,234 |
multiple glut windows but same display function | <p>I am trying to render the model in two windows in glut. But it is rendered in only one of the windows. Is it possible to render in two windows with different callback functions? </p>
<pre><code>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/glew.h>
#include <GL/fr... | 1 | 4,039 |
c# usercontrol setting list of options for custom property | <p>I am trying to create a custom collapsible panel for use in one of my projects. I have it set up to display which sides should be able to collapse, and it takes a string input <code>{"None", "Up", "Right", "Down", "Left", "All"};</code>.</p>
<p>Here is what I have so far:</p>
<pre><code>public partial class Collap... | 1 | 1,399 |
Bootstrap cards alignment issue on small screen devices | <p>I have 3 card decks each with 3 cards,on large screen everything is fine and they all show up quite good .However in small screens the card deck still shows 3 cards in each row with similar behaviour ,where as i have given col-12 col-xs-12 col-md-12 for each card.I have tested the code on google chrome extension for... | 1 | 4,820 |
Openquery insert not working | <p>I have a linked MySQL -server to MSSQL-server and I am trying to INSERT data to the table admin_user on the MySQL -server, but end up getting the error:</p>
<blockquote>
<p>Cannot process the object "dbo.admin_user". The OLE DB provider
"MSDASQL" for linked server "MYDB" indicates that either the object
has ... | 1 | 1,682 |
How to hide a field when editing that is visible when adding an item? | <p>I have a problem with trying to hide a field when editing an entry that must be visible when adding an entry.</p>
<p>My table structure is as follows:</p>
<pre><code>equip_items
--------------
id (pk)
equip_type_id (fk to equip_types)
site_id (fk to sites)
equip_status_id (fk to equip_status)
name
</code></pre>
<... | 1 | 1,049 |
Recharts tooltip with pointer (react,tooltip) - code part | <p>This question is the code for the question posted here:<a href="https://stackoverflow.com/questions/43257143/recharts-tooltip-with-pointer-react-tooltip?noredirect=1#comment73590128_43257143">Recharts tooltip with pointer (react,tooltip)</a>. </p>
<p>The original question: </p>
<p>On a line graph trying to display... | 1 | 2,377 |
OpenGL GLut linking issues with Visual Studio 2013 on Windows 8 64bit | <p>First I downloaded glut from this source, http://user.xmission.com/~nate/glut.html"> Nate Robins. I put:
glut32.dll into C:\Windows\SysWOW64,
glut32.lib into C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib
glut.h into C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\GL</p>
<p>In V... | 1 | 2,431 |
Spring MVC AbstractMethodError error | <p>First of all I am so sorry for such a generic error. The reason it is so generic is because I am trying to make a springMVC example I found on the internet work. An example which I do not know much about yet. </p>
<p>For anyone who is really generous and wants to understand more the example is explained here at <a ... | 1 | 1,071 |
Testing modalInstance.result.then | <p>I am finally working on learning how to test using an older angularjs app I wrote. I have a few modals in my controller and I cannot figure out for the life of me how to make sure the code in 'modalInstance.result.then' is run and test against it.</p>
<p>I've searched Google and SO and have found examples of people... | 1 | 1,233 |
React Native Build Error: Could not read optimization profile file (even after change optimization configuration) | <p>I was trying to solve some provision issue with steps in this <a href="https://www.youtube.com/watch?v=TDN1Dp_GqnM" rel="noreferrer">video</a>, after that the building process keeps reporting error. </p>
<p>The steps in that video are:
<code>
1. project -> clean
2. project -> build
3. project -> perform a... | 1 | 2,316 |
How to cast SAAJ object during handling SOAP message? | <p>Colleagues, i have xml which need to be handle and configure before sending to client:</p>
<pre><code><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:request xmlns:ns2="http://mayacomp/Generic/Ws">
<in xmlns="http://mayaco... | 1 | 5,126 |
GCP dataflow with python. "AttributeError: Can't get attribute '_JsonSink' on module 'dataflow_worker.start' | <p>I am new in GCP dataflow.</p>
<p>I try to read text files(one-line JSON string) into JSON format from GCP cloud storage, then split it based on values of certain field and output to GCP cloud storage (as JSON string text file).</p>
<p>Here is <a href="https://gist.github.com/frankShih/065aaff7a7b0b296a41ee7a4ab4bb... | 1 | 1,059 |
Gradle Sync Failed in Android Studio 3.0 Canary 5 | <p>This is my <code>build.gradle(Project: MyProjectName)</code> file:</p>
<pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.1.1"
ext.supportLibVersion = "25.3.0"
repositories {
jcenter()
}
d... | 1 | 1,050 |
Exception in Spring MVC | <p>Hello im doing little CRUD, and without WEB layer all works.. And now i attached Spring MVC and it doesn't want to work. I'm trying to deploy app into Tomcat, and getting this Exception. Can't understand why.. Please help.
Thank you.</p>
<pre><code>INFO ContextLoader [ContextLoader.java:347] Root WebApplicationCon... | 1 | 11,346 |
Check if a row with specific td exists on a table jquery | <p>I want to check if a row that has td with specific title and year.
Here is my function and the problem is the title2 and year2 are set to undefined.
How do I get cell values correctly?</p>
<pre><code>var table = $("#mainTable");
var exist;
$(table).find("tr").each(function () {
var title... | 1 | 1,108 |
error while inflating XML in Google maps fragment | <p>trying to display Google map using a fragment. Used the following <a href="https://developers.google.com/maps/documentation/android/start" rel="nofollow noreferrer">page</a> as a tutorial. </p>
<p>I am getting the exception "Error Inflating class fragment ".</p>
<p>1) Imported the jar google-play-services.jar</p>
... | 1 | 1,553 |
React-Native: Hermes is not enabled | <p>I am trying to enable <a href="https://facebook.github.io/react-native/docs/hermes" rel="nofollow noreferrer"><code>Hermes</code></a> in a new project but despite I have enabled it in <code>android/app/build.gradle</code> it is not enabled. I am not able to see <code>Engine: Hermes</code> text in app as described in... | 1 | 1,250 |
AngularJs : Passing parameter to ng-click in directive | <p>I have a directive in which i am adding an a button and an ng-click on the button. My code for directive is</p>
<pre><code>AppDirectives.directive(
'feed',
function() {
return {
restrict : 'AE',
scope : {
... | 1 | 1,400 |
PHP Use select value to search and display result to textbox | <p>My Selectbox Items from aircraft table </p>
<pre><code><select name="selectaircraft">
<option id="0">-- Select Aircraft -- </option>
<?php
require("dbc.php");
$getallaircraft = mysql_query("SELECT * FROM aircrafttable");
while($viewallaircraft = mysql_fetch_array($getallaircraft)){
?>
<op... | 1 | 2,985 |
How to put 2 parameters in doInBackground asynctask ? | <p>I use <code>Asynctask</code> to load and get data from php. And I have to pass 2 parameters to php.
But I don't know how. </p>
<p>Here is the java code :</p>
<pre><code>public class info extends Activity{
ProgressDialog pDialog;
TextView movie_tittle, studio, date;
int std;
String movie, reservation, ttl, dt;
pr... | 1 | 1,379 |
When running PyQt5 app in Spyder it always exits with -1 | <p>I am learning to program with PyQt5. No troubles with that, but there is one annoying issue: when I start the app, I immediately get the message that an exception occurred and SystemExit: -1 is repported (see below). </p>
<pre><code>An exception has occurred, use %tb to see the full traceback.
SystemExit: -1
/hom... | 1 | 3,623 |
Flex items expanding to content height | <p>I am using flexbox layout to position three divs in a column so that each div has the same height. Each div displays a scrollbar if its content is too large. I would like each section to only expand to the height of its content, but currently what happens is that every section is always the same height regardless of... | 1 | 1,071 |
How to serialize a ViewState objects | <p>I have some functions that query a database and puts the result into a gridview. It also sets a ViewState variable that contains the results of the query. When I postback, I have a load function that loads the gridview from the last results if any. </p>
<p>The Problem I am having is that I am getting an error that ... | 1 | 2,012 |
checkbox list does not update in flutter getx | <p>I am using GetX for the state management in flutter project. My problem is when I click on the checkbox it updates the state in controller but does not show the result in UI. In general the changed state should change the UI too. I am not sure what is the problem but I think there is a bug in using the observable va... | 1 | 1,451 |
Is there any way to apply loop in a presto query | <p>My use case is to use the below presto view on top of the table to get daily count by subtracting the todays value with that of yesterday. If there is no data in the table then the view should dynamically consider next day value and then take the average for the missing day view.</p>
<p>This is a presto query. I ha... | 1 | 1,071 |
Unable to view kiali dashboard | <p>I installed Istion version 1.6.9 with below steps</p>
<pre><code>Install Istio Version 1.6.9
wget https://github.com/istio/istio/releases/download/1.6.9/istio-1.6.9-linux-amd64.tar.gz
tar -xzvf istio-1.6.9-linux-amd64.tar.gz
cd istio-1.6.9
cd bin/
sudo mv istioctl /usr/local/bin/
istioctl --version
istioctl install ... | 1 | 4,484 |
JqGrid Basic Grid example error when saving a new row | <p>I am using the Basic Grid example from <a href="http://www.trirand.com/blog/jqgrid/jqgrid.html#t24" rel="nofollow noreferrer">jqGrid Demos</a>:</p>
<pre><code>jQuery("#rowed1").jqGrid(
{
url : 'clientArray',
datatype : "local",
colNames : [ 'Inv No', 'D... | 1 | 2,272 |
Logarithm of a pandas series/dataframe | <p>In short: How can I get a logarithm of a column of a pandas dataframe?
I thought <code>numpy.log()</code> should work on it, but it isn't. I suspect it's because I have some <code>NaN</code>s in the dataframe?</p>
<p>My whole code is below. It may seem a bit chaotic, basically my ultimate goal (a little exaggerated... | 1 | 1,054 |
Expected Array but received ...(JSON)... AngularJS Error | <p>I'm learning Angular1 from Adam Freeman's ,,Pro AngularJS" book. I've got a problem with building a DeployD app he's describing in chapters 6-8 - it seems like my code doesn't want to read JSON</p>
<p>That's my HTML: </p>
<pre><code><!DOCTYPE html>
<html ng-app="sportsStore" lang="pl">
<head>
... | 1 | 2,632 |
how to determine c3p0 max_statements | <p>I'm wondering how to properly determine what value to use for c3p0 max_statements. I've experienced some caching dead locks which seems to point back to my max_statements configuration based on all the SO Q&A I've read. </p>
<p>I'm using mysql and the deadlock appears to happen when I'm doing some multi threadi... | 1 | 1,768 |
io.realm.exceptions.RealmMigrationNeededException: Migration is required due to the following errors: - Class 'SaveMessage' has been added | <p>I am developing new app but I am getting following exception</p>
<blockquote>
<p>java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.example.myapplication/com.example.myapplication.MessengerActivity}:
io.realm.exceptions.RealmMigrationNeededException: Migration is
required due to the foll... | 1 | 2,644 |
Drawing into OpenGL ES framebuffer and getting UIImage from it on iPhone | <p>I'm trying to do offscreen rendering of some primitives in OpenGL ES on iOS. The code is as follows:</p>
<pre><code>// context and neccesary buffers
@interface RendererGL
{
EAGLContext* myContext;
GLuint framebuffer;
GLuint colorRenderbuffer;
GLuint depthRenderbuffer;
}
</code></pre>
<p>.m file:</p>
<... | 1 | 1,658 |
Opening named pipe in one module, reading in the other | <p>I'm hot on the trail of figuring something out for one of my projects, but hung up on one issue:</p>
<p>I'm using a FIFO operation to send a 'signal' (simple T/F) from one module to another. One module opens the FIFO to write to it, and the other opens the FIFO to read from it. The goal here is to have the reading ... | 1 | 1,243 |
How to Change django admin css style and font? | <p>I'm Developing an app with django .</p>
<p>I want to customize django admin interface , but i cant add a custom font to it .</p>
<p>I Want to use a custom font for Persian Language .</p>
<p>Here is What i did but not get a correct result : </p>
<p>Step 1 : </p>
<p>I create a css file named admin-extra.css in th... | 1 | 1,058 |
Implementing the Viterbi algorithm in a HMM with changing emission matrices across genomics markers | <p>I would like to ask for help in implementing a hidden markov approach to assigning ancestry based on SNP genotype data. Given that I have a <b>transition</b> matrix generated as such:</p>
<pre><code>states <- c("A1","A2","A3","A4","A5","A6","A7","A8") # Define the names of the states
A1 <- c(0.9,0.1,0.1,0.1,0... | 1 | 2,691 |
Lucene.net cant search ".net" | <p>Q1: I am making a search using Lucene. Everything works fine and quickly. When I tried to search for the phrase ".net", it didn't find anything. Maybe you know how can I cope with this.</p>
<p>Q2: How can I search and ignore case?</p>
<p><strong>Update 1</strong></p>
<p>Q1:I am saving jobs using <a href="http://... | 1 | 2,433 |
Selenium Grid Node cannot connect to Hub | <p>I am trying to initiate a Selenium Grid hub on my Mac and then set up a node on a Windows 7 VM also on my Mac (running in VirtualBox, if that matters). I am running this command on the Mac:</p>
<pre><code>java -jar selenium-server-standalone-3.0.1.jar -role hub
</code></pre>
<p>And then I get </p>
<pre><code>Nod... | 1 | 1,831 |
ZF2: How to get Zend\Navigation inside custom route? | <p>I have custom router and I have to get access to <code>Zend\Navigation</code> inside this custom router. I was googling, asking and searching and no results :/</p>
<p>All I need is to find nodes with 'link' param using Zend\Navigation in my Alias::match function.</p>
<p>Here is my module.config.php:</p>
<pre><cod... | 1 | 1,601 |
Fixing invalid memory alloc request at PostgreSQL 9.2.9 | <p>I've encountered a problem querying some of my tables recently. When I try to select data I get an ERROR telling: ERROR: invalid memory alloc request size 4294967293. This generally indicates data corruption. There is a nice and precise technique of how to delete corrupted rows described here: <a href="https://conf... | 1 | 1,405 |
Didn't find class "android.support.v4.content.ContextCompat" even after adding all the libraries | <p>When I change my targetSDK to greater than 22, the compiler does not allow to use permissions directly. The permissions have to be provided by user for which I have to use below code :</p>
<pre><code>if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRA... | 1 | 1,060 |
"Failed to resolve: support-v4" after upgrading android studio | <p>I was in the middle of a project when i decided to upgrade android studio from 3.0.1 to 3.1.2 and ever since i did, i get this error when building my app. <strong>I know questions similar to this one has been asked before but the difference is, it doesn't provide the version of the library it has problem with. So it... | 1 | 1,485 |
Pagination in Tab Content of Jquery UI | <p>I am making a page with Jquery UI TABS.
In one of tabs I want to make pagination for comments.
I want such thing. When user clicks on the number of the page,
the data of the page , which is linked will load via ajax in the tab. </p>
<p>Here is my code</p>
<pre><code><script type="text/javascript">
$(fun... | 1 | 1,084 |
react reload data with AJAX | <p>I have a series of React components loading data from HTTP service in <code>componentDidMount</code> as explained here <a href="http://facebook.github.io/react/tips/initial-ajax.html" rel="nofollow">http://facebook.github.io/react/tips/initial-ajax.html</a></p>
<pre><code><html>
<body>
<script src=... | 1 | 1,049 |
Error: Cannot find module 'xml2json' | <p>When run my project package, i have getting above title error, after i trying to install that packages using </p>
<blockquote>
<p>npm install xml2json</p>
</blockquote>
<p>but, i have getting below error only, can you pls give me suggestions or idea to get out from this issue...</p>
<pre><code>D:\xampp\htdocs\p... | 1 | 2,622 |
priority queue of custom class | <p>I am trying to add a user-defined plane object to a priority queue:</p>
<pre><code>int main( )
{
std::string filename;
cout << "Enter file name >> ";
getline( cin, filename );
ifstream fin;
fin.open( filename.c_str( ) );
if( fin.fail( ) )
{
cout << "Unable to open the input file" ... | 1 | 1,102 |
Set Canvas Width and Height Android for Custom View | <p>I have an issue with a CustomView. I have a layout where I have EditText fields on top of screen. At the bottom there are two buttons. The remaining space in the middle of the screen is occupied with an ImageView. On the ImageView I should be able to draw a rectangle. I have kept a CustomView in my layout which also... | 1 | 3,240 |
nginx: 403 forbidden when php files in separate directory | <p>I've successfully installed nginx that uses PHP-FPM but unfortunately I'm having some trouble when loading my php files from a different directory. All my files are located in subdirectories in /var/www/html (e.g. all css-files are located in /var/www/html/css, all javascript-files are located in /var/www/html/js, a... | 1 | 1,035 |
How to append multiple child elements in the DOM and display them, using vanilla javascript? | <p>I am trying to insert some SVG icons in the dom but the SVG(parent node) is always being replaced by the use(child node). Anyone help me figure it out?</p>
<p><a href="https://i.imgur.com/oEANfWm.png" rel="nofollow noreferrer">Source code Image here</a></p>
<p><a href="https://codepen.io/evangeloskolimitras/pen/oO... | 1 | 1,512 |
"PolicyException: Required permissions cannot be acquired" in Full Trust — can't see why | <p>This is a two-part question, of sorts.</p>
<p>I'm trying to set up a new part of our Production (Live) hosting architecture, so I'm trying to point our Staging webserver to the new Production content share (a UNC path on another server in the same subnet).</p>
<p>I'm currently getting the dreaded <em>PolicyExcepti... | 1 | 1,210 |
Why doesn't this code close JDBC connections? (Java 7 Autocloseable unexpected behavior) | <p>Using Java 7u5, with the try-with-resources construct, the following code <strong>appears to leak jdbc connections</strong>:</p>
<pre><code>try (Connection connection = ..; PreparedStatement stmt = ..) {
stmt.setString(..);
return stmt.executeUpdate() > 0;
}
</code></pre>
<p>The next piece of code works... | 1 | 1,811 |
retain searchView state on orientation change in a Fragment | <p>I am trying use the actionbarcompat (with the android support library) following the <a href="http://android-developers.blogspot.in/2013/08/actionbarcompat-and-io-2013-app-source.html" rel="noreferrer">android developer's blog</a> entry.</p>
<p>Basically, I am trying create a Fragment extending the ListFragment. I ... | 1 | 1,427 |
The process cannot access the file 'filename.xml' because it is being used by another process | <p>i have a webservice project c# , when i upload my project @live i get this error :</p>
<blockquote>
<p>System.IO.IOException: The process cannot access the file
'E:\Sites\www.bivolino.com\bivolino3D\bivo\imgGal\ProductFeedBeslist.xml'
because it is being used by another process. at
System.IO.__Error.WinI... | 1 | 1,784 |
C Fraction Arithmetic | <p>I'm having great difficulty with the following that I need to do for an assign:<br />
<strong>a.</strong> Declare a data structure that contains a rational number.<br />
<strong>b.</strong> Write f'xns that will +, -, *, / rational numbers.<br />
All f'xns have to pass 3 parameters, each pointing to a data structure... | 1 | 1,654 |
Dynamic heightForRowAtIndexPath: with many (thousands) of cells | <p>I'm having some performance issues when using a dynamic value in <code>heightForRowAtIndexPath:</code>
(I know it's this method because if I set a static value the responsiveness increases substantially). My table contains around 3000 cells.</p>
<p>I understand why the performance suffers when using a dynamic val... | 1 | 1,076 |
Using .Net MVC, how can I list multiple html audio players that play different files? | <p>My friend and I are working on a college project using .Net. We're trying to build a website that allows users to listen to audio clips in a similar manner to sites like Soundcloud.
At the moment we have a basic MVC site that allows users to upload audio onto the server file system, and records various details about... | 1 | 4,141 |
Getting Values from Map Using JSTL | <p>I tried looking at different questions here, but none of them matched exactly.</p>
<p><code>I get Map data from the source as <Key,Value> pairs, typically a JSON source</code></p>
<p>I have tried something like this</p>
<pre><code><tr>
<c:forEach items="${record.attributes.entry}" var="entry"&g... | 1 | 1,507 |
Detailed description of "Known IDE Packages" to safely remove unused packages | <p>I'm doing some cleanup in my Delphi XE2 IDE in order to minimize the loaded packages and as a consequence of less things in the IDE try to make it a little more stable (man, how it crashes).</p>
<p>The main reason for doing this was that the Refactor shortcuts was conflictling with other tools I use and usually whe... | 1 | 1,476 |
Angular .removeAt(i) at FormArray does not update in DOM - Angular | <p>I thought it was an issue with my implementation but seems that my code for creating dynamic FormArray should be functional based from <a href="https://stackoverflow.com/questions/53040555/angular-removeati-not-removing-element">this question</a> I raised. When I integrate it to my project, the remove function does ... | 1 | 1,424 |
MongoDB nested lookup with 3 child levels | <p>I need to retrieve the entire single object hierarchy from the database as a JSON.
I'm trying aggregate for hours and can't solve how to do it with my data. So I have three collections:</p>
<p><strong>form</strong></p>
<pre><code>{ "_id" : "1", "name" : "My first form" }
{ "_id" : "2", "name" : "Second one" }
{ "... | 1 | 1,159 |
cannot resolve or is not a field error | <p>I am trying to search an arraylist of objects for an ID code, but I am stuck.</p>
<pre><code>import java.util.Scanner;
import java.util.ArrayList;
public class Homework01{
public static void main(String[] args){
ArrayList<Transaction> argList = new ArrayList<Transaction>();
Scanner in... | 1 | 1,331 |
Yii2 and Codeception API test with _before | <p>I'm using Yii2 as my app framework, I started with the advanced template. I have a frontend, backend and api entry point for my app. I have moved frontend, backend and api out of the root directory and into /modules to keep clutter down in the root.</p>
<p>I am trying to create a registration test for my API regist... | 1 | 1,372 |
Displaying Form Data in another page after clicking submit button | <p>i am very new to android i have created a form with 3 field. I want to display these field data in next screen or in the same screen in TextView but i failed....following are my xml code.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/ap... | 1 | 1,343 |
How composer `extra.symfony.require` restriction is enforced? | <p>Let's say I have a Symfony v4.4 (Flex) project with the following block in the <code>composer.json</code>:</p>
<pre><code>"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.4.*"
}
}
</code></pre>
<p>As expected, it restricts the Symfony core packages to stick to the <code>v4.4</c... | 1 | 3,229 |
How can I Filtering API data(response) in ReactJS? | <p>I am working on Reactjs application, I am doing get request to render the list item with <strong><code>axios</code></strong>, data is in form of json</p>
<p>in response, there is array which has type <strong><code>purchase</code></strong>, <strong><code>refund</code></strong> and <strong><code>Adjustment</code></st... | 1 | 1,766 |
VB piping STDOUT from cmd.exe output to to write to textbox | <p>I'm trying to adapt a VBscript that runs the QWINSTA command against a text file I've defined as an array and displays the results in a text file.</p>
<p>after looking at numerous examples on Stack and other sites this is my latest iteration, that displays everything except the STDOUT, which is really what I'm afte... | 1 | 1,230 |
PHP Session Confusion | <p>Alright, I'm confused as hell. I have an object that I store in a session. I can add items to this object. Pretty simple so far. I initialize the object like this:</p>
<pre><code>$template = new Template($mysqli);
$_SESSION['template'] = serialize($template);
</code></pre>
<p>Now this should create a brand spankin... | 1 | 2,406 |
Passing request object from view to form in Django | <p>I'm trying to create an account edit page which visually contains a single form (ie single submit button) but the fields are part of two (or more) different models. I've pieced together a solution from several SO answers and the form loads fine on GET requests but I would now like to conditionally hide/display the t... | 1 | 2,015 |
javax.net.ssl.SSLHandshakeException: null cert chain java error | <p>Am trying to establish an ssl connection.I have a Server and I have a client. I have both of them running on the same machine. am trying to establish an SSL connection between the client and the server. i have generated certificates for both the server and the client with the following keytool command.</p>
<p>For C... | 1 | 3,119 |
how to add new field to mechanize form (ruby/mechanize) | <p>there is a <a href="http://mechanize.rubyforge.org/mechanize/WWW/Mechanize/Form/Field.html" rel="noreferrer">public class method</a> to add field to mechanize form</p>
<p>I tried .. </p>
<pre><code>#login_form.field.new('auth_login','Login')
#login_form.field.new('auth_login','Login')
</code></pre>
<p>and both gi... | 1 | 1,139 |
SwiftUI [Presentation] / Attempt to present View on ... which is already presenting | <p>I am working on a SwiftUI app and am having warnings first and later bugs, probably because I ignored the warnings. I want to show the warnings I am getting and I hope somebody can point out something I may be doing wrong.</p>
<p>Here is the relevant code:</p>
<pre><code>struct CustomListView: View {
var localLi... | 1 | 1,474 |
Code-behind for DataTemplate in a ResourceDictionary | <p>I am attempting to use code-behind to support an event handler in a DataTemplate. The below code works fine when it is the code-behind for a Window, but not for a ResourceDictionary. The code will not even compile when put in the code-behind for the ResourceDictionary.</p>
<p>I know that Commands is the better op... | 1 | 1,258 |
ElasticSearch Java Api: Update Existing Document | <p>I am currently in the process of attempting to update an ElasticSearch document via the Java API. I have a groovy script with the following code:</p>
<pre><code>static updateRequestById(String agencyIndex, String type, String id, def policy) {
UpdateRequest updateRequest = new UpdateRequest()
... | 1 | 3,764 |
SetData() not working on Change Event HighCharts Pie Chart | <p>I'm looking for a way to dynamically update data in a highcharts pie chart based on the change event on a dropdownlist. I have seen a couple examples but I am really unable to figure out why I can't get this working. Here is my whole code, I wrap my stuff inside a function so I can call the function with the Chang... | 1 | 1,701 |
Getting error: Incomparable types - Object and int | <p>My code is below but when I build the project, Netbeat gives me this warning:</p>
<blockquote>
<p>Error: incomparable types: Object and int
if (p.info == x) {</p>
</blockquote>
<p>Does anyone know how to fix this error? Thanks.</p>
<p>Here's error code:</p>
<pre><code> public void insert(int x... | 1 | 5,412 |
How to remove files when file name too long in Mac OS X | <p>I tried to find all the conflict files and delete them by the command:</p>
<pre><code>find ./ -iname *Air* | xargs -0 rm
</code></pre>
<p>but it showed me the error ": File name too long"
How could I fix it?</p>
<pre><code>.//sandbox/CDF.files/._image002 (Hsu-Wei-Chengteki-MacBook-Air 的冲突副本 2013-08-19).jpg
.//san... | 1 | 2,348 |
Spring + Eclipselink + JtaTransactionManager = javax.persistence.TransactionRequiredException | <p>I really hope you can help me. I've been looking all over the internet for answers and none of them works.</p>
<p>I use Spring 3 + JTA + EclipseLink but i'm getting a TransactionRequiredException when flushing a transaction. Now i'm very used to just defining my persistence context and injecting the EntityManager a... | 1 | 6,331 |
Issue with custom Authentication filter asp.net core | <p>I'm trying to create a custom authentication filter in ASP.NET Core. Need to use it in the controller to authenticate the JWT provided to me and create a Claim Principal. However when I place the authentication tag above the controller, nothing happens and the controller is getting processed without the authenticati... | 1 | 1,031 |
error: cannot find symbol variable Uri ANDROID | <p>hello i am new to android and i am having a webiste which i have converted into mobile APP just by using the <code>**web view**</code> and what i want now is a function to put into the android so that i can find all the phine numbers in the website and make it clickable and dial that number on call . </p>
<p>functi... | 1 | 1,092 |
Node.js - Passing multiple objects to same EJS file | <p>I have multiple MySQL query results where I render the first and make callable the rest ones to a single EJS file (/data) as objects.</p>
<p>I render only the <em>first</em> query results (<strong>obj</strong>) and then I make the rest callable to the EJS (<strong>rsum_total_sales</strong> & <strong>rsum_count_... | 1 | 1,850 |
Top-align nodes | <h2>Problem</h2>
<p>The following image shows an organization chart:</p>
<p><img src="https://i.stack.imgur.com/zIhzB.png" alt="Not desired output"></p>
<p>The <code>Full Name</code> boxes are aligned along their centre. The desired layout, however, aligns the boxes along the top:</p>
<p><img src="https://i.stack.i... | 1 | 4,496 |
Am I abusing std::optional | <h2>How <code>std::optional</code> fits in my code?</h2>
<p>My code contains MANY functions that looks roughly like:</p>
<pre><code>bool GetName(_Out_ string& strRes)
{
// try to get/calculate the value
// value may also be empty
// return true on success, false otherwise.
}
</code></pre>
<p>Now that I ... | 1 | 1,352 |
Can onMeasure be skipped when adding a View to a ViewGroup? | <p><strong>Answered</strong></p>
<p>I have a RelativeLayout where I am adding views dynamically as the user scrolls vertically or horizontally. I have rolled my own ViewRecycler since there is potentially thousands of views that could compose the whole of what can be scrolled, but I only show 30 or so at any time. Thi... | 1 | 1,213 |
Error when trying to set up JDBC connection with local MYSQL database in Java 17 with a spring boot project | <p>My project is generated/downloaded from: <a href="https://start.spring.io/" rel="nofollow noreferrer">https://start.spring.io/</a></p>
<p>I am now trying to connect to my local MYSQL database which actually has data in it and is fully functional. To do this I am using a springboot project where I want to set up a jd... | 1 | 9,320 |
SSL ProtocolException on Java 11 | <p>I have recently migrated my springboot application from Springboot 1, Java 8 to Spring boot 2, Java 11. This was working fine on 8 so far.
This springboot application is a cron job which runs daily and processes thousands of records.
For each record this application calls another app to retrieve some response (both ... | 1 | 3,301 |
class not found after composer dump-autoload | <p>I have a problem with compser autoload.<br> If execute command "composer dump-autoload" then emerges error <strong>Class not found</strong> because <em>autoload_static.php</em> changed.</p>
<p>I have following structure of project:</p>
<p><strong>app</strong> <br>
-- public <br>
------ <em>index.php</em> <br>
-- s... | 1 | 1,509 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.