title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
PersistenceUnit already registered
<p>While trying to deploy my war file into Jboss 6.4 server I am getting the following error, I googled it but mostly every one says make sure you are running single instance of Jboss, I am running single instance of Jboss and single deployment</p> <blockquote> <p>21:00:48,747 ERROR [org.jboss.msc.service.fail] (MSC...
2
1,632
Setting array inputs rules - Yii Framework
<p>I'm learning yii framework for an e-commerce project and it was going great so far. I have an addition form for estates and that form is generating using database. The code below, generates the form (/views/ad/_form), and giving names to input fields like detail["ad-title"], detail["ad-image"] etc.</p> <pre><code> ...
2
1,073
Refresh folder under WebContent by java program (in eclipse project)
<p>I ‘m making a WEB system (latest Java8 &amp; eclipse_mars.2 on Windows 32x) . And this system has file download function (files are made by java). When files(for download) are placed in myproject/WebContent/tempfolder , And users can access these files by URL and can get files.</p> <p>(I want to manage Web syste...
2
1,733
Core Text: Simplest accurate means of getting text bounds?
<h3>Question:</h3> <p>What is the simplest accurate means of getting the bounds for a given line of text, using Core Text?</p> <h3>Problem:</h3> <p>I have tried multiple techniques, but am getting inconsistent results.</p> <h3>Context:</h3> <p>I have been trying to figure out how to find the actual bounds of what ...
2
1,084
Magento 2 dynamicRows as new tab for admin customer edit, how do you get data loaded?
<p>How can I load the data from customer DataProvider plugin into my ui_component dynamicRows? </p> <p>I have created a new tab in the admin customer edit form, and added my ui_component, which seems to work well. But I can't populate the data already stored in my database. </p> <p>I have tried to add xml for DataSou...
2
4,834
How to use c# login wordpress
<p>This example login function <strong>But does not work for loading the Dashboard page</strong> wordpress. I need to perform some action in wordpress admin panel programmatically but can't manage how to login to Wordpress using C# and HttpWebRequest.</p> <p>Here is what I do:</p> <pre><code>namespace Wordpress_Logi...
2
1,520
Wordpress Rest API reverse Proxy
<p>I am trying to setup reverse proxy with wordpress and exclude couple of paths. My exclude rules work for admin, includes, ..etc but it doesn't work for /wp-json/. I am suspecting it is because of the .htaccess. I need wordpress to return the rest api data because I use that in gatsbyjs. </p> <p>I have spent the who...
2
1,166
Gzip compression setting for asp.net with jquery post
<p>In my application, I do a jquery post which gets an array of json objects. What are the settings that i need to make both on iis7.5 and json?</p> <p>I made a custom httpmodule </p> <pre><code>private void Compress(object sender, EventArgs e) { HttpApplication app = (HttpApplication)sender; ...
2
1,263
CATransform3D not being applied properly in custom UICollectionViewFlowLayout
<p>I'm having a strange issue with custom UICollectionViewFlowLayout, my cells contain an imageView, I apply a zoom effect to my cells... however I think that I'm doing something wrong with the Zoom Effect, it's strange, because my cells get scaled correctly, the problem is that the imageView for some cells is not.</p>...
2
1,385
Displaying a section of a html page when a user clicks on the internal link
<p>i am trying to make it easier to navigate an html page that i have created. The links at the begining of the page serve a section jumps. Now i want to hide the DIV contents and remain with the internal links only when someone loads the page, then when the user clicks on an internal link, only the content assosiated ...
2
1,345
How to handle arrays in Selenium IDE 3.7.4
<p>In <strong>Selenium IDE 3.7.4</strong> I'd like to make a loop to do click on several links that have similar Xpath. For this I think in create an array but trying with a simple array with the settings (Command,Target, Value) as below is not working.</p> <pre><code>+----------------+--------------------------------...
2
1,536
fix memory leaks with valgrind
<p>I am working with c++ and been using valgrind to fix memory leaks. I am trying to optimize the following piece of code that valgrind characterizes as a leak:</p> <pre><code>void VOMC::sub_train(vector&lt;Letter&gt; tempLettersA, vector&lt;Letter&gt; tempLettersB) { int stateA_id = state_exists(tempLettersA); ...
2
1,392
Process.Start url with hidden WindowStyle
<p>I have a url that authenticates my credentials on a server. Is there a way to make it invisible? The simple code looks exactly like this:</p> <pre><code>public void DoAuth() { String uri = GetUri(); ProcessStartInfo startInfo = new ProcessStartInfo(uri); startInfo.WindowStyle = ProcessWi...
2
2,313
Spring Cloud Service Registers with Discovery Server but then un-registers and stops
<p>Nutshell explanation:<br> Build a very basic Eureka Discovery server spring boot 2.0.4. Also created a basic Eureka service that uses Eureka discovery. Start the discovery server and then start the service. The service registers with the discovery server but then is immediately unregistered and stops.</p> <p>Det...
2
5,913
Why is dragging in Raphaël broken by stopping propagation of mousemove in an enclosing element in the bubble phase?
<p>I am trying to debug an event handling bug in a complicated web application, but I've reduced the problem to a simple example that demonstrates the behaviour that I'm confused by.</p> <p>My example page, based one of the Raphaël examples, is as follows:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; ...
2
1,551
Magento on DigitalOcean server
<p>I have a problem with Magento store running on Digital Ocean server.</p> <p>This is my droplet configuration:</p> <pre><code>2GB Ram | 40GB SSD Disk | New York 2 | Ubuntu Ubuntu 12.04.3 x64 </code></pre> <p>When I am using Magento store, it works normally, except when I try to create account or do a purchase.</p>...
2
1,238
PHP POST value from <input> that was created with While loop
<p>I am attempting to create a page that displays buttons that are associated to an account number that is a primary key in a database. When I click on the button I want that button to take its value and assign it to a variable that can be used for loading information into a profile page that will load after the button...
2
1,063
How to record screen with audio in VLC on MacOSX
<p>I came across this <a href="https://stackoverflow.com/questions/6538426/how-to-capture-microphone-input-in-vlc">How to capture microphone input in VLC?</a> and in this post it is said that:</p> <blockquote> <p>Mac: Use VLC 2.0.0 or later and utilize the qtsound module:</p> </blockquote> <pre><code>/Applications/...
2
5,486
Highlight current navigation tab based on url or subdirectory
<p>I've created a vertical navigation on the left of our site. We'd like the background color for a <code>.item</code> to change based on the subdirectory where a user is viewing content. So if someone clicks on a nav <code>.item</code>, the href will redirect them to a page and we want that <code>.item</code> to be hi...
2
1,070
Win32com Module Problems
<p>I want to convert .xls to .xlsx, so I use win32com module</p> <p>this is my code:</p> <pre class="lang-py prettyprint-override"><code>import os import win32com.client as win32 address = address = os.getcwd() fname = address + &quot;\\Bundles.xls&quot; fname2 = address + &quot;\\searchresults.xls&quot; excel = win32...
2
1,033
Yii2 Dependent Autocomplete send Extra Parameters
<p>Below are snippets of two Yii2.0 Autocomplete widgets</p> <pre><code> &lt;?php echo $form-&gt;field($model, 'countryId')-&gt;begin(); echo Html::activeLabel($model, 'countryId', ["class"=&gt;"control-label col-md-4"]); ?&gt; &lt;div class="col-md-5"&gt; &lt;?php $da...
2
2,165
Upload Image using WCF service from Android: Cannot process because of content type
<p>I am getting the error below while trying to upload the image.</p> <blockquote> <p>Cannot process the message because the content type 'multipart/form-data; boundary=AwQm1pbogJ6qQuZlUZjJ6kNOvbehrlyozA-w' was not the expected type 'text/xml; charset=utf-8'.</p> </blockquote> <p><strong>Android Code :</strong> </p...
2
1,089
Access is denied in spring oauth 2
<p>I was looking through oAuth2.0 and I wrote this demo code, but I am not getting access token. <a href="http://localhost:8080/oauth/token?grant_type=password&amp;client_id=restapp2&amp;client_secret=secret&amp;username=admin&amp;password=admin" rel="nofollow noreferrer">http://localhost:8080/oauth/token?grant_type=pa...
2
5,209
Java Date method?class? joptionpane/output/display objects in arraylist from database?
<p>Need some help with case 5 &amp; 7. </p> <p>5 to display all objects &amp; associated variables = (date/account #/name on 1 line + address next four line + balance on the last line.</p> <p>I dont know how to nest the methods to do the above / format the output.</p> <p>This looks like it should but keeps giving me...
2
3,903
Why is pypandoc giving the error "RuntimeError: Missing format!" in this setup.py script?
<p>I have a <code>setup.py</code> script for a module. This <code>setup.py</code> script features conversion of a Markdown README file to reStructuredText (suitable for PyPI). When an attempt is made to install this module using pip (<code>sudo pip install supermodule</code>), the following error is presented:</p> <pr...
2
1,239
responsivefilemanager9 internal server error
<p>I installed responsive filemanager 9 from <a href="https://www.responsivefilemanager.com/index.php#documentation-section" rel="nofollow noreferrer">here</a> into my local tinymce 4.</p> <p>My tinymce config looks like this:</p> <pre><code>&lt;script&gt; tinymce.init({ selector: 'textarea', height: 500, theme...
2
1,058
compiling qt 4.7.3 on mingw with gcc 4.6
<p>I decided to start working on a new C++ project and wanted to use the latest version of the Qt framework, which is 4.7.3. I also decided to use gcc 4.6 found [here] (http://www.equation.com/servlet/equation.cmd?fa=fortran) . The compiler seems to compile simple c++ files using the new c++0x standard. </p> <p>The pr...
2
2,200
Error when getting groups for a particular email ID with Java google apps directory API
<p>I want to get groups for a particular email ID in Google Apps with the help of the Java Google Apps Directory API but I am getting an error.</p> <p>Can someone help explain what the error is and what in my code might be causing it? The error and related code follows.</p> <p><strong>Error:</strong></p> <pre><code>...
2
1,086
PowerBI DAX: Creating Measure which accepts partial visual filters from same table
<p>I have a Fact table and a Calendar table. The calendar table has a column boolean column denoting if a day is a holiday.</p> <p><a href="https://i.stack.imgur.com/Pvs9e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pvs9e.png" alt="Relationship"></a></p> <p>I wan't to create a measure: AllSales...
2
1,193
How to save data received from Arduino board in Android using SQL database?
<p>Currently i am developing Prototype of Air quality monitoring device using Arduino. The device integrated with three gas sensors that will send the the data over the HC-05 bluetooth module to my android app. I am able to receive the values in real time and display it using textview but have no idea on have to save t...
2
1,740
System.OutOfMemoryException being thrown
<p>I am getting a system.outofmemory exception in my code:</p> <pre><code>While r1.Read() menu1id = r1("id") db.AddInParameter(command2, "@menu1id", DbType.Int32, menu1id) r2 = db.ExecuteReader(command2) command2.Parameters.Clear() ...
2
3,321
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown error 1049
<p>This should be an easy one. I am writing a toy application in JPA with Eclipselink and not using SSL. When the entity manager is called I get the message below. I am guessing I am missing a parameter in my persistence.xml file, but the exception is not very specific.</p> <pre><code> [EL Info]: 2016-08-23 13:2...
2
1,950
How to toggle twitter bootstrap jquery dropdown by clicking on svg-path?
<p>I want to use a svg -element to "toggle" a dropdown (jquery twitter bootstrap) by clicking inside the -element. This is important because of complexe shaped dashboard elements. The toggle event should only be available if the mouse is inside the path element. I've build a <a href="http://jsfiddle.net/zNrcC/42/" rel=...
2
1,801
Android - Creating JsonFactory causes app crash
<p>I ran into a bit of trouble creating an app for android, I want to use a JsonFactory but the app crashes the moment I create one.</p> <p>I imported:</p> <pre><code>import com.google.api.client.json.JsonFactory; import com.google.api.client.json.jackson2.JacksonFactory; </code></pre> <p>And then I used:</p> <pre>...
2
1,117
How to set a custom progress bar visibility state during an AppWidget update
<p>Good day, ok, so i have no idea what am doing wrong here again. i wanted to show an AnimatedDrawable on my progressbar when updating my Appwidget and when i finish updating, i want the progress bar to become invisible. I know you have to embed the progress bar in a linearlayout or framelayout and call SetVisibility ...
2
1,081
Change cell color on Gridview based on condition using C#
<p>I am trying to change the color of the cell if the balance is less than zero then make it red. I am getting this error:</p> <pre><code>Input string was not in a correct format. </code></pre> <p>and here is my gridview</p> <pre><code>&lt;asp:GridView ID="gvTest" runat="server" Width="700px" CssClass="table table-...
2
1,253
Inserting an object of struct into a hash table C++
<p>I'm currently working on a project involving hash tables. I've read in a text file into a vector of Symbol structs and I now have to insert these structs (objects, really) into a hash table. I was given a specific insertion function to use, however, I can't seem to get it to work. I've included the insertion functio...
2
14,538
Why redis stream consumers should specify an individual name in the same consumer group?
<p>The codes below show how I test the Redis stream functions.</p> <p>And I found that different processes with the same consumer name are competing to consume messages in the same stream. In my understanding, if this performance is normal, Redis should not design a function to specify the consumer name.</p> <p>Is ther...
2
1,752
Confused about PhpSpec stubs and mocks again
<p>I'm building a Laravel 5 application at the moment and have gotten myself confused about how to mock things in PhpSpec.</p> <p>I'm building a schedule times validator that requires the intended schedule to be checked against all current schedules and see if there's any overlap (events are not allowed to overlap).</...
2
2,127
How to convert hierarchical tree JSON to flat array using Node.js?
<p>I am trying to create a report like given below with Node.js. The data is consumed from Microstrategy API.</p> <p><a href="https://i.stack.imgur.com/tpWVo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tpWVo.png" alt="enter image description here"></a></p> <p>Below is the JSON response I am get...
2
19,562
Passing an array to numpy.dot() in Python implementation of Perceptron Learning Model
<p>I'm trying to put together a Python implementation of a single-layer Perceptron classifier. I've found the example in Sebastian Raschka's book 'Python Machine Learning' very useful, but I have a question about one small part of his implementation. This is the code:</p> <pre><code>import numpy as np class Percep...
2
1,069
java.lang.NoSuchMethodException: java.io.File.<init>()
<p>I have used the code in <a href="https://stackoverflow.com/questions/1844688/read-all-files-in-a-folder">Read all files in a folder</a>. But when I try to implement the code, it gives me an error - java.lang.NoSuchMethodException: java.io.File.() Stack Trace:</p> <pre><code>java.lang.NoSuchMethodException: java.io....
2
1,707
Django compressor is not working on hosted static files on amazon s3
<p><strong>Error:</strong> '<a href="https://socialboard-in.s3.amazonaws.com/static/notices/index1.css" rel="nofollow">https://socialboard-in.s3.amazonaws.com/static/notices/index1.css</a>' isn't accessible via COMPRESS_URL ('<a href="http://socialboard-in.s3.amazonaws.com/" rel="nofollow">http://socialboard-in.s3.amaz...
2
1,376
How to parse JSON using volley library android
<p>I parsed JSON response using <code>Volley library</code> as done in <a href="https://www.youtube.com/watch?v=FzwBYPzCIHk" rel="nofollow noreferrer">this video</a>. But I am getting an error. The error is: </p> <blockquote> <p>E/VOLLEY: ERROR</p> </blockquote> <p>Can somebody help me, please? I don't know what th...
2
1,347
dotnet pack for .NET Core project produces .nupkg file with sources
<p>I have a simple .NET Core 2.1 class library project and need to pack it as a Nuget package. For that I'm using this command:</p> <pre><code>dotnet pack &lt;project&gt;.csproj --output &lt;outputFolder&gt; /p:Configuration=Release </code></pre> <p>But, I'm getting this warning:</p> <pre><code>C:\Program Files\dotn...
2
1,168
Entity Framework - inserting new entity via objectcontext does not use existing entity properties
<p>I have an insert method on my repository like so:</p> <pre><code>public T Insert(T entity) { _ctx.AddObject(EntityName, entity); _ctx.SaveChanges(); return entity; } </code></pre> <p>If I execute the below code, the values assigned to my entity do not propagate to the SQL that is executed.</p> <pre><...
2
3,937
How to use JQuery datepicker in Angular?
<p>I tried to write the below code in ngOnInit</p> <pre><code> $('#DatePicker').datepicker({ changeMonth: true, changeYear: true, maxDate:0, //The calendar is recreated OnSelect for inline calendar onSelect: function(date, dp) { this.updateDatePickerCells(d...
2
1,473
Spring bean throwing error on creation
<p>I am trying to create a bean and I am getting an error thrown. I have narrowed it down to this specific bean and after referencing the <a href="http://static.springsource.org/autorepo/docs/spring-security/3.1.1.RELEASE/apidocs/" rel="nofollow">API documents </a>, I don't understand why it is getting thrown whenever...
2
2,515
Disable AuthGuard and canActivate restrictions
<p>I received a project where I need to work on for an internship, but there is a <code>canActivate : [AuthGuard]</code> and many others restriction, so every routes redirect me to login page, and I don't have any credentials to connect so I need a way to disable temporarily those restrictions if someone can help me, I...
2
4,297
Flutter typeahead textField in a reactive_forms custom widget not displaying the selected option text
<p>I'm using <a href="https://pub.dev/packages/flutter_typeahead" rel="nofollow noreferrer">Flutter Typeahead</a> to use a google maps places autocomplete. Everything is working fine except that I can't get the textField to show the selected suggestion text. I am setting the <code>TextEditingController.text</code> to s...
2
5,275
Using React Router v4 is it possible to create multi level routes in child components?
<p>So I'm fairly new to the React framework, and I have decided to use Router v4, even though it is in beta, at the time of writing this, it seems to be the best way to go about things. </p> <p>I have a router that shows one of two components </p> <pre><code>import React from 'react'; import { HashRouter as Router, R...
2
1,206
React pass props from multiple arrays in state
<p>I am trying to pass props from two arrays that are contained in the state of the react component. One array is generated by the user and the other is already built in. This is a bit over my head as I'm still new to React and am unsure how to correctly pass props.</p> <p>There are no errors here in the component, ...
2
3,380
A Particular Image on a div not showing in localhost using ASP.net/IIS
<p>Problem when i run it in localhost my header disappear, sometimes when i'm changing some code in <code>#header</code> it appears in design view but when run on localhost it's appearing as a big image and not following the correct height and width that i declare. the code that i will paste here is the one that is not...
2
2,493
Not able to interact via SSH from a JAVA program
<p>I am doing SSH with my linux server via a java program , I am able to execute the commands like shell scripts. But the problem is whenever I am executing a particular shell script it is giving an option to select between yes or no , now from my java console I am selecting yes but this is not actually interacting wit...
2
1,184
How do you Remove the Black Line from a Delphi DBGrid OnTitleClick Event?
<p>I have a Delphi DBGrid that looks normal when it first loads. I have setup an <strong>OnTitleClick</strong> event that sorts the DBGrid by the column when the title is clicked. As soon as you click on the title, the column title acts like a button being pressed and an ugly black line appears. (See Fig. 2 below)</p> ...
2
1,241
Form Validation in Coldfusion
<p>i am trying to validate my form so it doesnt accept empty fields. You can see i have tried to do validation on the "Country" using the 'required' property but that doesnt work....</p> <p>I only want validation done on certain fields: Country, Address, City and ReceptionNumber</p> <p>Here is my code for the form:</...
2
2,131
Python Asyncio task is running without gather()
<p>I was trying to reproduce &amp; better understand the TaskPool example in <a href="https://medium.com/@cgarciae/making-an-infinite-number-of-requests-with-python-aiohttp-pypeln-3a552b97dc95" rel="nofollow noreferrer">this</a> blog post by Cristian Garcia, and I ran into a very interesting result.</p> <p>Here are th...
2
1,103
n() acting inconsistently when used in summarise_at()
<p>Using this example data:</p> <pre><code>library(tidyverse) set.seed(123) df &lt;- data_frame(X1 = rep(LETTERS[1:4], 6), X2 = sort(rep(1:6, 4)), ref = sample(1:50, 24), sampl1 = sample(1:50, 24), var2 = sample(1:50, 24), meas3 = sa...
2
1,120
Uncaught TypeError: Cannot read property 'src' of undefined at displayFull
<p>I am having trouble with this homework assignment and I have been stuck on it for a while. I am getting an error message saying </p> <blockquote> <p>Uncaught TypeError: Cannot read property 'src' of undefined at displayFull</p> </blockquote> <p>Any idea to fix this?</p> <p>The image folders and files are in t...
2
1,196
Dynamically created QWidget in QFormLayout does not have frame, even if explicitly asked to do so
<p>I have a little problem with this bit of code:</p> <pre><code>DatasetWidget::DatasetWidget(QWidget *parent) : QWidget(parent), ui(new Ui::DatasetWidget) { ui-&gt;setupUi(this); // cut non-ui related stuff here ... // Add widgets for(int loop=0;loop&lt;theAmountOfItemsWeAdd;++loop) { QL...
2
2,338
How can I encrypt data in Delphi and in C# so that they are compatible?
<p>I'd like to encrypt some data on the client in my Delphi application in a way that is compatible with the encryption on my server. On my server, I encrypt the data using this C# code:</p> <pre><code>public class AesCryptUtils { private static byte[] _salt = Encoding.ASCII.GetBytes("o6806642kbM7c5"); /// ...
2
1,234
Java for loop executed twice
<p>I am experiencing some troubles when executing a for loop. The loop is called twice. Here is the code that does the work: </p> <pre><code>import java.util.ArrayList; import java.util.List; public class PoolItemMapper { public List&lt;Item&gt; mapJsonObjectsToItems(JsonResponse jsonResponse) { int coun...
2
1,774
read value of html element stored in variable with jquery
<p>In this case:</p> <pre><code>$.get($(this).attr('href'), function(destino){ // } </code></pre> <p>How I can read the elements and which was get from file <strong>$(this).attr('href')</strong> and save them in a variable to use later? </p> <p>I try this options, and none work:</p> <p>1)</p> <pre><code>$tit...
2
1,253
Spring Security Login Captcha integration
<p>I have integrated a Captcha plugin on Spring MVC Security. The problem is that even if i have a bad captcha but good credentials it will login but show me bad captcha.</p> <p>I think my problem is in the spring-security file:</p> <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security" ...
2
1,667
Spring form errors
<p>I have a problem with using spring form to login, I know what is the problem but I can not fix it. This is my code:</p> <pre><code>My Login.java package com.fsoft.entity; import org.hibernate.validator.constraints.NotEmpty; public class Login { @NotEmpty(message = "Please enter your username") private...
2
4,274
Physics and gravity in Andengine/Box2D platformer
<p>I'm putting together a 2D platformers using Andengine with the Box2D extension using the PhysicsJumpExample (<a href="https://code.google.com/p/andengineexamples/source/browse/src/org/anddev/andengine/examples/PhysicsJumpExample.java" rel="nofollow">https://code.google.com/p/andengineexamples/source/browse/src/org/a...
2
6,107
NHibernate not loading child objects
<p>I have following class and associated mappings (Fluent NHibernate):</p> <pre><code>public class Category { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual Category ParentCategory { get; set; } public virt...
2
1,089
How to not Hard code the program in java? Used property file. But unable to use it with multiple xpaths?
<p>Scenario: Download a new month report from the site.</p> <p>Month.txt: Oct(2015) Unconventional wells</p> <p>Here is the structure:</p> <p>config.properties:</p> <pre><code>#browser browser=http://www.depreportingservices.state.pa.us/ReportServer/Pages/ReportViewer.aspx?%2fOil_Gas%2fOil_Gas_Well_Historical_Produ...
2
2,520
Firebase Firestore Messing Up Order Of Array
<p>I'm using Firebase's Firestore to store data for my iOS app. In Firestore, I have two collections. One called <code>songs</code> and one called <code>playlists</code>. The <code>songs</code> collection contain many documents and each document has a single song info inside of it. Here's what a <code>songs</code> docu...
2
1,034
How to Implement CNN2D+ LSTM Model For Image Classification in Keras?
<p>There is 2550 images as train set and 1530 images as test set. to classify these images into two classes, a hybrid deep learning model including CNN2D+LSTM is used but there is an error is occurred during running the code as is shown below. i was wonder if someone help me to solve it. thanks in advance</p> <p>ERROR:...
2
1,540
iphone how to i get text field value pass to tableview?
<p>i want do gave user fill in number to text field, then i need get the user value pass to table view cell.detailTextLabel ?any one know how to do this?..</p> <p>my code here.</p> <p>at .h i have </p> <pre><code>IBOutlet UITextField *numText; NSString *string; </code></pre> <p>then at .m</p> <p>when button click ...
2
1,569
Getting error while creating JPA producer endpoint
<p>I am new to Camel. I am writing a camel route for following scenario</p> <ol> <li>Pick XML file from a location</li> <li>Validate the XML file against XSD</li> <li>Persist the XML data into DB</li> </ol> <p>And i wrote like this</p> <pre><code>public void configure() throws Exception { JaxbDataFormat j...
2
5,011
Looping apply function over list of dataframes
<p>I have looked through various Overflow pages with similar questions (some linked) but haven't found anything that seems to help with this complicated task.</p> <p>I have a series of data frames in my workspace and I would like to loop the same function (rollmean or some version of that) over all of them, then save ...
2
1,125
Cyclomatic complexity for index is too high
<p>I have index action in my Controller:</p> <pre><code>def index authenticate_admin! @users = User.paginate(per_page: 25, page: params[:page]) if params[:list_type].to_i == 2 # =&gt; Pending mentors @users = @users.where(documents: { is_verified: 0 }, user_type: 0, profile_status: 1) elsif params[:list_ty...
2
1,145
Testing asynchronously returned data
<p>I have the following example:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Mocha&lt;/title&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=...
2
1,467
Android DrawerLayout (with NavigationView) behind status bar
<p>I have an app with a <code>DrawerLayout</code> that contains a <code>NavigationView</code>:</p> <p><strong>activity_layout.xml:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ap...
2
1,195
fatal error: 'Flutter/Flutter.h' file not found when running for iOS
<p>I have a flutter app which was using only the android side. Now I want to run it on a iPad but it throws this error:</p> <pre><code>Error output from Xcode build: ↳ 2021-04-19 11:31:26.233 xcodebuild[21793:154600] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-...
2
1,116
Generate a barcode inside SVG Angular 5
<p>As the title states I am attempting to put a barcode within a SVG but am having trouble doing so using Angular 5.</p> <p>I am using <a href="https://www.npmjs.com/package/ngx-barcode" rel="nofollow noreferrer">NGX-Barcode</a> to generate the barcodes and have created a SVG to put the barcode within. However I canno...
2
2,275
php Error: XML or text declaration not at start of entity Source
<p>whenever I use the following code in PHP files , it gives me the error (Error: XML or text declaration not at start of entity Source)</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; </code></pre> <p>I don't know what could be the solution</p> <p>please help</p> <p>Thanks in advance</p> <pre><code>&l...
2
4,236
Proxy dash on twisted using nginx results in "Error loading layout"
<p>I implemented a dash dashboard for running in a productive scenario with twisted by (relevant code of <strong>my_dashboard.py</strong>)</p> <pre><code>import dash import flask from twisted.internet import reactor from twisted.web.server import Site from twisted.web.wsgi import WSGIResource import werkzeug.serving ...
2
1,026
How to refresh fragment on spinner onItemSelected in android
<p>I have a fragment with a spinner and a listview the list view is updated when the user chooses one of the options from the spinner, and I came to an idea that I have to refresh the fragment when an option is chosen. but the issue is the fragment goes in an infinity loop when I refresh the fragment from &quot;onItemS...
2
5,767
ASP.NET Error when binding a GridView to a List of Objects?
<h2>Error Message:</h2> <blockquote> <p>The data source for GridView with id 'FormProprietari' did not have any properties or attributes from which to generate columns. Ensure that your data source has content.</p> </blockquote> <p>I have a ASP.NEt application in which I try to bind a <code>GridView</code> to ...
2
1,317
Cython: Cannot Convert pointer to Python Object after module split
<p><strong>The Problem:</strong></p> <pre><code>Error compiling Cython file: ------------------------------------------------------------ ... cpdef Py_GetRemoteDevice(PyChannel Chan): ret_val = mod_one.PyRemoteDevice() cdef core.RemoteDevice * tmp with nogil: tmp = core.GetRemoteDevice(Chan.__inst...
2
1,921
Losing connection with Net::SSH::Perl
<p><strong>SOLUTION BELOW</strong></p> <p>We have an ETL system that extracts data into a CSV, uploads it to another server, and then needs to connect to the other server and call a java jar to load the csv into memcache. I've got a script that can perform every step of this but loses the SSH connection for the final ...
2
1,372
EROFS: read-only file system while creating node js function AWS Lambda
<p>I have created one function on the AWS lambda using Node js version 6.10. I need to create PDF file from html string and send that file in the email. Following is my code:</p> <pre><code> exports.handler = function index(event, context, callback) { var toAddress = event.to; var fromAddress = event.from; ...
2
1,064
MongoDB - count items using addToSet
<p>I'm working with a collection called "submissions" that includes mission data for a game. Every time you submit your answer to the question/mission a document is saved to the submissions collection.</p> <p>A typical document looks like this:</p> <pre><code>{ "_id" : ObjectId("5b0c99dffea598002fdb6ec9"), ...
2
1,677
Why is OrbitControls not working as expected ? (Three.js)
<p>I am using <code>THREE.OrbitControls</code> in my experimental project and have something very similar to <a href="https://codepen.io/anon/pen/JOJEwE" rel="nofollow noreferrer">this</a> example.</p> <p>I have different radio buttons at the top and I want to only enable <code>THREE.OrbitControls</code> if the <code>...
2
4,640
How to add 1 progress bar on statusstrip to indicate the loading of each webbrowser on each tab?
<p>I am currently developing a custom made web browser using c# with different predefined capabilities. One of the problem that I encountered is adding a progress bar on the status strip. The first technique that i used to achieve this is by getting the <strong>webBrowser.Doument.Title</strong> and throwing it to the <...
2
1,470
Finite State Machine for Java client - best practice needed
<p>I am creating a Java Client to print messages with a small state-machine at the heart of my main class. This client polls a JMS queue and decides if it needs to print a message from a queue or needs to send a message back with JMS.</p> <p>I was wondering if you Java gurus would share your state-machine advise for t...
2
1,414
Post Dynamic form data using Vue and Django
<p>I am using Vue js to post data from a regular .html form to Django. Been using python and Django for a few days now.</p> <p>There is a section of my form which contains an area that allows the user to dynamically add form fields(regular inputs and file uploads). I increment name value by using the index everytime t...
2
2,017
How to change TextField input's focus border using Material-UI theme
<p>I'm trying to create my own theme with <code>Material-Ui v.5.4.0</code>. And I faced with problem. I can't change <code>TextField</code> <code>focused</code> border <code>color</code> and <code>width</code>. I spend hours for research and didn't find working solution. And I started to think is it even possible to do...
2
1,098
Python: Assertion error, "not called"
<p>I am finding it difficult to tackle the following bugs with the program, I would greatly appreciate some input.</p> <p>The goal of the program is to perform a SMTP scan. The user inputs the target IP address, usernames, passwords and numbers of threads to allocate to the scanning process.</p> <pre><code>Traceback ...
2
2,554
Android Exception "Cannot broadcast before boot completed"
<p>I got this error from the logs. </p> <p>I keep searching on the web but no answers. I just want to know what causes this error.</p> <p>Logs:</p> <pre><code>[java] java.lang.RuntimeException: An error occured while executing doInBackground() [java] at android.os.AsyncTask$3.done(AsyncTask.java:300) [ja...
2
1,036
Setting UIbutton image from a function from another class
<p>So I have a list of songs, and when I click on the moreButton the SongDetailCell is presented and the <code>setPlayPauseOnAppeaering()</code> function is called on the selected song.</p> <p>This function will either set a play or pause icon depending on the if statement. For some reason the pause-icon is not being,...
2
1,060
Unity3D canvas scaler for different aspect ratios
<p>In Unity, I'm trying to build a mobile game for both android and ios platforms. I have been trying some different screen resolutions for testing purposes before I release the game. I have addressed the resolution issues using the code,</p> <pre><code>[ExecuteInEditMode] [RequireComponent(typeof(Camera))] public clas...
2
1,066
Unable to test a component with a service
<p>After reading this <a href="https://angular.io/docs/ts/latest/guide/testing.html#!#stub-observable" rel="nofollow noreferrer">guide</a> I've decided to test my simple login page which contains just 2 input boxes and a submit button. The component then uses a <code>LoginService</code> to pass these data to backend. <...
2
2,348
Error building project in Heroku (invalid character in key name = ':')
<p>I can't build my project in Heroku, crashing on Pipfile. Heroku is linked with my Github repository, which is private for obvious reasons. I tried other things too, but when I add 'worker: python bot.py' on Pipfile, it just doesn't build. There's no Pipfile.lock on my project. Logs:</p> <pre><code> -----&gt; Py...
2
1,691
Disabling animations on a device crashes the app
<p>I have an AnimationDrawable, which plays a frame animation and then the next Activity is started with a circular reveal animation:</p> <pre><code> @Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus) { AnimationDrawable anima...
2
1,833
Showing annotations only inside the overlays
<p>In my map, I have to show annotations from a kml file via an URL. I also need to show only the annotations inside a polygon or circle area (or both of them if the user has both overlays drawn).</p> <p>I have seen the question <a href="https://stackoverflow.com/questions/4354130/how-to-determine-if-an-annotation-is-...
2
1,299
Getting Rails to work on Heroku with Mongo db
<p>I have downloaded an open-source code <a href="https://github.com/barmstrong/ribbot.git" rel="nofollow noreferrer">ribbot</a>. I am new to Ruby and Rails but I have set up my environment and was able to get this code to run on my local machine.</p> <p>I wanted to use Heroku as my server base solution. I pushed this ...
2
2,464