title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Prevent "Tried to use Provider with a subtype of Listenable/Stream" flutter error
<p>I want to use the provider package(4.0) in my flutter project but i get the "Tried to use Provider with a subtype of Listenable/Stream" error/warning.</p> <p>My constelation:</p> <p>I have an <code>Api()</code> class which contains base CRUD functionality for firebase-cloudstorage.</p> <p>I have an <code>EventSer...
0
1,228
SQLite Transaction not committing
<p>For an application we are developing we need to read <em>n</em> rows from a table and then selectively update those rows based on domain specific criteria. During this operation all other users of the database need to be locked out to avoid bad reads. </p> <p>I begin a transaction, read the rows, and while iterat...
0
1,258
version of mysql2 (0.3.2) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1
<p>Hi i am using rails version 3.0.7 when i run rails generate model task name:string i m getting following warning</p> <pre><code>WARNING: This version of mysql2 (0.3.2) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1 WARNING: Please use the 0.2.x releases if you plan on usin...
0
1,468
Cannot encrypt password in configuration file
<p>I'm having trouble encrypting the database password in <code>hibernate.cfg.xml</code></p> <p>This is my property file.</p> <pre class="lang-xml prettyprint-override"><code>&lt;!-- Database connection settings --&gt; &lt;property name="connection.driver_class"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/pro...
0
1,504
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException Java
<p>I keep getting this error in my console, however there's no error in my coding when I look over it. It also keeps opening up the exact same JOptionPanes when I don't want it to open up. After the loops supposedly finish, the JOptionPane reopens and goes through asking the user to input values for the Bingo Card. How...
0
8,604
WPF BindingSource
<p>Working on learning WPF by converting one of my applications over from WinForms What is the WPF way of doing the following</p> <pre><code> DataTable _current = _connections.Copy(); BindingSource _bs = new BindingSource(); bs.DataSource = _current; bs.Filter = "Client = '" + _selectedClient + "'"; </code></pre> ...
0
1,398
Getting error "cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter."
<p>I am trying to generate Extent report for my test run using Junit cucumber ,but i am getting error </p> <pre><code>"cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter. It does not implement cucumber.api.Plugin " </code></pre> <p>My Error trace is as follow...
0
3,337
DACPAC won't deploy because 'can't connect to server'?
<p>I'm trying to deploy a DACPAC to LocalDB 2012 but it's just not having it:</p> <p>Stack trace is as follows:</p> <pre><code>================================== Could not deploy package. (Microsoft.SqlServer.Dac) ------------------------------ Program Location: at Microsoft.SqlServer.Dac.DeployOperation.Micros...
0
1,384
How to disable 301 redirect that adds trailing slash to directory name in Apache
<p>The Apache 2.2.20 automaticaly redirects all requests which are points to directories and has no trailing slash to the same URL with trailing slash, like shown below:</p> <pre><code>GET /some/path/to/dir HTTP/1.1 Host: www.some.org ... 301 Moved permanently Location: http://www.some.org/some/path/to/dir/ </code></...
0
1,445
Iterate over nested data with for / for_each at resource level
<p>I am trying to work out how to iterate over nested variables from a complex object given in the following tfvars file using Terraform 0.12.10:</p> <h3>example.tfvars</h3> <pre><code>virtual_network_data = { 1 = { product_instance_id = 1 location = "somewhere" addr...
0
1,307
Spring Hibernate Repository Testing with jUnit
<p>First of all I am a newcomer for Spring + Hibernate development. Followed lots of tutorials books and I have created a sample application mainly on Spring, Hibernate based on the standards, I have started writing some test cases for Repository (DAO) methods ie find, findAll, save, delete.</p> <p>Its really crazy wh...
0
2,308
How to Pass a List of Items from View to Controller (ASP.NET MVC 4)
<p>I'm trying to pass multiple <strong>items</strong> of type <strong>List&lt;item&gt;</strong> to my controller, however, when I submit my data, it show as null in my controller.</p> <p>What I would like to happen is that I have a list of 'expenses' in the View, and beside each 'expense' or item is a checkbox from th...
0
6,416
Using Entity Framework Core 3.1 with UseInMemoryDatabase option in ServiceProvider ( Scoped lifetime )
<p>I have migrated a web application project from .NET Core 2.1 to 3.1 (also EF Core from 2.1.1 to 3.1.0).</p> <p>After the migration, some unit tests are not working anymore, throwing duplicate keys db exception. </p> <p>I simulated the problem and realize that EF core with option <code>UseInMemoryDatabase</code> is...
0
1,649
Deserialization Error: The XML element 'name' from namespace '' is already present in the current scope
<p>This is my first time using XML Serialization and this is driving me absolutely <strong>nuts</strong> after 2 days of trying to troubleshoot this.</p> <p>I get this error when the deserialization kicks in:</p> <pre><code>The XML element 'name' from namespace '' is already present in the current scope. Use XML attr...
0
6,603
Sending email message from the app using MFMailComposeViewController in MessageUI on iPhone
<p>I'm a software developer, and I'm making an application for the email message and I have the following code:</p> <pre><code>// Header file // importing the MessageUI framework #import &lt;MessageUI/MessageUI.h&gt; // adding the delegate functionality to the class (&lt;MFMailComposeViewControllerDelegate&gt;...
0
1,583
Problem to add View dynamically in Linearlayout
<p>I want to add multiple View in a <code>LinearLayout</code>. Here is the code I am using for add adding multiple view to the <code>LinearLayout</code>.</p> <p><strong>Java code:</strong></p> <pre><code>LinearLayout seriesMainListItemView = (LinearLayout) findViewById(R.id.SeriesMainListItemView); La...
0
1,401
AngularJS directive for "html select required"
<p>Another day with another question. I'm working again on my web application. Now I got a problem. THe 'required' attribute is not supported in major browsers (<a href="http://www.w3schools.com/tags/att_select_required.asp" rel="nofollow">http://www.w3schools.com/tags/att_select_required.asp</a>) , it only works if th...
0
1,717
Mule - error running project with Maven
<p>Trying to run project with Maven using Anypoint Studio IDE.</p> <p>But I am getting this error in Console:</p> <p>[ERROR] Failed to execute goal on project magento: Could not resolve dependencies for project com.test:magento:mule:1.0.0-SNAPSHOT: Failed to collect dependencies for [com.mulesoft.muleesb:mule-core-ee...
0
4,753
Creating a BMP file (bitmap) in C
<p>I'm trying to make a bitmap in C, just from code. I'm currently trying to make a very easy .bmp image, with a height of 1px and a width of 4 pixels, with all white pixels. I have read the format description and tried to apply it. This resulted in the following code:</p> <pre><code>char bitmap[1000]; void BMPmake()...
0
1,125
Cleaning up Spark history logs
<p>We have long running EMR cluster where we submit Spark jobs. I see that over time the HDFS fills up with the Spark application logs which sometimes renders a host unhealthy as viewed by EMR/Yarn (?). </p> <p>Running <code>hadoop fs -R -h /</code> shows [1] which clearly shows no application logs have ever been dele...
0
1,828
MVC 3 Razor webgrid - how to change the table width
<p>I have a problem where whatever I try I can't change the width of the webgrid table. It ignores the css of its parent div and changing the width of the grid using css doesn't have any effect.</p> <p><strong>Webgrid partial view</strong></p> <pre><code>@model IEnumerable&lt;UserManager.Models.vw_UserManager_Model&g...
0
1,967
Better way to add PhantomJS binary to a maven project?
<p>I tried using the phantomjs-maven-plugin to install phantomjs binary. I wanted to run my tests on a Tomcat7 server that is why I need to configure binary automatically.</p> <p>Here is my pom.xml</p> <pre class="lang-xml prettyprint-override"><code>&lt;properties&gt; &lt;ghostdriver.version&gt;1.2.0&lt;/ghostdr...
0
2,900
Deserialization issue from XML to POJO with Jackson: no String-argument constructor/factory method to deserialize from String value
<p>I've got an XML document which I need to convert (deserialize) into Java POJO. I <strong>cannot change the structure</strong> of the XML document. I use Java 8, and Jackson framework for mapping. <strong>Gradle</strong> dependencies:</p> <pre><code>dependencies { compile('com.fasterxml.jackson.dataformat:jackso...
0
6,247
zpool replace erroring with does not contain an EFI label but it may contain partition
<p>I had a drive fail in one of my vdevs setting the state of the zpool to degraded: root@mediaserver:~# zpool status pool: zfsraid state: DEGRADED</p> <p>So I started taking steps to replace the drive.</p> <p>This is the id of the old disk: wwn-0x5000cca225f459d5 This is the id of the replacement disk: wwn-0x5000...
0
1,314
How to trace and prevent the deadlock appeared in c3po which is running in seperate processes?
<p>I have a very simple computation which produces letter matrices finds probably all the words in the matrix. The letters in the word are adjacent cells. </p> <pre><code> for (int i = 0; i &lt; 500; i++) { System.out.println(i); Matrix matrix = new Matrix(4); matrix.scanWordsRandomly(9); ...
0
4,569
React navigation to navigate from redux action file
<p>I want to navigate from my reduc action file. 1st screen is login so after click on login button will call a redux action creator and reducer generate a new state. So, after the action i want to rediret to my dashboard.</p> <p>I am using </p> <p><strong>react native + redux + react navigation</strong></p> <p>Logi...
0
1,236
How do I correctly implement Comparable for List in this instance?
<p>What I want to do is use the compareTo() method to compare removedItemFromList1 and removedItemFromList2, then insert whichever value is smaller into the modifiedList3 and put the larger of the two removedFromList 1 or 2 back into its original list. If I had hair long enough to pull, it would have been pulled out b...
0
1,028
How to fix problem with resources on android?
<p>Getting the following in LogCat:</p> <pre><code>03-28 16:18:57.795: WARN/ResourceType(8351): No package identifier when getting name for resource number 0x00000001 03-28 16:18:57.865: WARN/ImageView(8351): Unable to find resource: 1 03-28 16:18:57.865: WARN/ImageView(8351): android.content.res.Resources$NotFoundExc...
0
1,820
Unicorn unable to write pid file
<p>I am using deploying a Ruby on Rails app to a Linode VPS using Capistrano. I am using Unicorn as the application server and Nginx as the proxy. My problem is that I am not able to start Unicorn because of an apparent permissions issue, but I'm having a hard time tracking it down.</p> <p>Unicorn is started using thi...
0
1,648
C++ event system design
<p>I need to use an event system in C++. I have mainly four requirements : </p> <ol> <li>Speed </li> <li>Ease of use</li> <li>Type Safety</li> <li>Friendly Destruction</li> </ol> <p>By "Friendly Destruction" I mean the event and the subscriber need to manage their disconnection when one of them get destroyed :</p> <...
0
1,535
Run both HTTP and HTTPS in same program
<p>Why can't I run both HTTP and HTTPS from the same golang program?</p> <p>Here is the code where the two servers are initiated.. The server which is initiated first will run - the second won't.. If they are switched arround the other will run and the other won't..</p> <p>No errors are returned when running the prog...
0
1,186
Sqlite SQLITE_MISUSE error in node.js script
<p>When I launch code with this query, sometimes I can see all the tables listed, sometimes only one and I get always this error:</p> <p>Query Error: Error: SQLITE_MISUSE: unknown error</p> <p>I've read that SQLITE_MISUSE occurs when SQLITE API is used unproperly. Could you help me, because I can't find whats wrong i...
0
1,320
FreeTDS - Unable to connect: Adaptive Server is unavailable or does not exist
<p>CENTOS 6.5 x86_64 WHM 11.42.1 unixODBC 2.2.14</p> <h2>freetds v0.91</h2> <p>I'm trying to connect to remote MSSQL server without success - also tried connecting with different tds versions (4.2, 7.0, 7.1, 8.0) but all give the same result.</p> <p>Using the same servername, port, username and password, I'm able to...
0
1,647
Vuetify: How to filter data in v-data-table?
<p>In a data table, I want to display only items, where the property 'display' is 'true'. There is the property 'filter' in the component <a href="https://vuetifyjs.com/en/components/data-tables" rel="nofollow noreferrer">v-data-table</a>. But there is no example showing, how to use it.</p> <p>I have tried several app...
0
2,897
org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1
<p>I have for to login my site </p> <pre><code>&lt;form method="post" action="login"&gt; &lt;input type="text" placeholder="Email" name="email"&gt; &lt;input type="password" placeholder="Password" name="password"&gt; &lt;button type="submit"&gt;Login&lt;/button&gt; &lt;/form&gt; </code></pre> <p>in contro...
0
2,666
OpenGL Shader Compile Error
<p>I'm having a bit of a problem with my code for compiling shaders, namely they both register as failed compiles and no log is received. </p> <p>This is the shader compiling code:</p> <pre><code>/* Make the shader */ Uint size; GLchar* file; loadFileRaw(filePath, file, &amp;size); const char * pFile = file; const...
0
1,149
How to interpret addresses in a kernel oops
<p>I have a kernel oops in a linux device driver I wrote. I want to determine which line is responsible for the oops. I have the following output, but I do not know how to interpret it. </p> <p>Does it mean my code crashed at the instruction at write_func + 0x63? How can I relate the value in EIP to my own function? W...
0
1,474
Writing to HDFS from Java, getting "could only be replicated to 0 nodes instead of minReplication"
<p>I’ve downloaded and started up Cloudera's Hadoop Demo VM for CDH4 (running Hadoop 2.0.0). I’m trying to write a Java program that will run from my windows 7 machine (The same machine/OS that the VM is running in). I have a sample program like:</p> <pre><code>public static void main(String[] args) { try{ ...
0
2,552
Gradle: Why the "Could not get unknown property 'com' for root project" error?
<p>Gradle v4.10.2</p> <p>I built a simple Gradle plugin project by following <a href="https://guides.gradle.org/writing-gradle-plugins/" rel="nofollow noreferrer">Writing Gradle Plugins</a> tutorial, and I'm able to build and publish the project into our S3 Maven repo. I DO have the plugin identifier file in my <code>...
0
5,361
Bootstrap's Panels with the same height
<p>I have 3 bootstrap panels one next to another. They height of each of them is variable according to the information retrieved from the database. I want that the height of the 3 of them match. If one of them has less info, anyway adjust the height to the taller panel. I know that I must use display:table and display:...
0
1,469
How to execute a shell command across platforms in .NET Core?
<p>In my .NET Core Console app, I receive multiple commands in form of an array of string, and would like to execute them as console command (and showing their output in my own app if possible but not hard requirement).</p> <p>At first, I tried to parse each command to separate their name and arguments and put them in...
0
1,217
A RenderFlex overflowed by 41 pixels on the bottom. The relevant error-causing widget was Column
<p>I need to create a search box with the result of searching in <code>ListView.Builder</code>, but I have a crash! I tried to solve it with get the <code>Container</code> height value <code>MediaQuery.of(context).size.height</code> but get me the same issue!</p> <blockquote> <p>════════ Exception caught by renderin...
0
2,458
AngularJS View not updating when Controllers $scope variables changed?
<p>basically my issue is that I have a AngularJS view (home.html) which contains a variable in double brackets like so: {{message}} </p> <p>When the $scope.message variable is modified, the view with does not update, although it should? I have tried adding $scope.$apply() which results in an exception along the line...
0
2,620
Unable to build Scala Maven project
<p>I am trying to build a maven-scala project. After creating the project, I created "clean compile" to build the project. When I run the build option, I see the below exception message:</p> <pre><code>"C:\Program Files\Java\jdk1.8.0_151\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\ABCSparkWorkSpace\DataExpo "...
0
3,468
Understanding Linux top CPU utilisation output
<p>I'm using an single core small ARM processor running under Debian and have problems understanding the CPU utilisation output of top, see:</p> <pre><code>top - 15:31:54 up 30 days, 23:00, 2 users, load average: 0.90, 0.89, 0.87 Tasks: 44 total, 1 running, 43 sleeping, 0 stopped, 0 zombie Cpu(s): 65.0%us, 2...
0
1,160
Joining multiple columns in one table to a single column in another table
<p>I am looking to create a view that pulls data from two tables "Schedule" and "Reference".</p> <p>Schedule has 50+ columns (it's almost completely denormalized -- not my design), most of which contain a value that could be joined to a column in the Reference table.</p> <p>How do I write the SQL statement to correct...
0
1,388
RichTextBox and Inserting at Caret Positions
<p>Here is the deal: I have a RichTextBox control and it works fine. The problem is that there is a button "Insert Current DateTime" which adds/injects the current datetime into the RichTextBox. The user can enter the datetime anywhere where the caret is pointing. This involves complicated string manipulation and stuff...
0
1,201
IOS:Swift: Video Screen Capture
<p>What is the screen device called in iOS/Swift?</p> <p>When I print the devices I get</p> <pre><code>( "&lt;AVCaptureFigVideoDevice: 0x134d0f210 [Back Camera][com.apple.avfoundation.avcapturedevice.built-in_video:0]&gt;", "&lt;AVCaptureFigVideoDevice: 0x134e0af80 [Front Camera][com.apple.avfoundation.avcapturedevic...
0
1,215
Replace NA's in R - works in a practice dataset but warning message when applied to actual data
<p>I have a dataset in <strong>R</strong> which looks like, and has been reshaped in the same way as, the following example. The aim is to turn NA values in to something else (e.g. "FALSE" or "0") which can then be used to create a new column </p> <pre><code>ortho.test&lt;-data.frame(rep("a",10));colnames(ortho.test)=...
0
2,374
Pandas read_csv: parsing time field correctly
<p>I have the following raw data,</p> <pre><code>TranID,TranDate,TranTime,TranAmt A123456,20160427,02:18,9999.53 B123457,20160426,02:48,26070.33 C123458,20160425,03:18,13779.56 A123459,20160424,03:18,18157.26 B123460,20160423,04:18,215868.15 C123461,20160422,04:18,23695.25 A123462,20160421,05:18,57 B123463,20160420,05...
0
1,380
OnCreateOptionsMenu() not called in Fragment
<p>I have an app which got one activity with 2 fragments placed horizontally.</p> <p>In my activity I inflated menu using <code>onCreateOptionsMenu()</code> using which I am able to display actionbar options menu. But when I try to update the action bar menu items from one of my fragment, the <code>onCreateoptionsmen...
0
4,031
Reading numbers from file c++
<p>I want to read numbers from text file. The file contains following numbers.</p> <p><code>3 5 7 9 20 25 30 40 55 56 57 60 62 1 4 7 11 14 25 44 47 55 57 100 -5 100 1000 1005 -12 1000 1001 </code></p> <p>Space separates numbers. I had to make some code to read this but the problem is that reading the numbers at the e...
0
2,401
Gyroscope on iPhone
<p>I need some help using gyroscope on iPhone. I can't understand readings from CMAttitude regarding pitch, roll and yaw in a particular situation.</p> <p>This is my code</p> <pre><code>- (void)handleDeviceMotion:(CMDeviceMotion*)motion { NSLog(@"Yaw %f ",attitude.yaw * 180 / M_PI); NSLog(@"Pitch %f ",attitu...
0
1,548
Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405aeb60 that was originally added here
<p>I know there are plenty of answer about this topic... but I am not able to find a solution to my problem. Its simple, an Activity:</p> <pre><code>public class DialogsActivity extends Activity { Bundle bundle=new Bundle(); String token; @Override protected void onResume() { // TODO Auto-generated method stub ...
0
2,884
How to do fade-in and fade-out with JavaScript and CSS
<p>I want to make an HTML div tag fade in and fade out. </p> <p>I have some code that fades out, but when I fade in, the opacity of the div stays at 0.1 and doesn't increase.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html ...
0
1,306
EL1008E: Property or field 'content' cannot be found on object of type 'java.util.ArrayList' - maybe not public or not valid?
<p>I trying to make simple filter for my project(phonebook) to be able to find users contacts by their email instead of id. When I simply lauch the URL: <a href="http://localhost:8080/home/phonebook" rel="nofollow noreferrer">http://localhost:8080/home/phonebook</a>. I get the following error.</p> <p><strong>The error...
0
1,562
How to add TIFF ImageReader to those registered in Grails
<p>I'm trying to create a Grails application that can display previews of TIFF files, and other images as well.</p> <h1>Background</h1> <p>The images are constructed from a SOAP service that gives me the bytes of the image. In a service method, I take the byte[], construct a ByteArrayInputStream from it, and then creat...
0
1,477
OCR: Image to text?
<blockquote> <p><strong>Before mark as copy or repeat question, please read the whole question first.</strong></p> </blockquote> <p>I am able to do at pressent is as below:</p> <ol> <li>To get image and crop the desired part for OCR.</li> <li>Process the image using <code>tesseract</code> and <code>leptonica</code>...
0
1,393
Colour chart for Tkinter and Tix
<p>I wanted to visualise some basic colours, so I could pick the appropriate ones for my colour scheme. I couldn't find a colour chart anywhere so modified a sample to display it.</p> <p>Is this a good way to do it?</p> <pre><code>import Tix as tk # import tkinter.tix as tk # for Python 3 COLORS =['snow', 'ghost wh...
0
2,970
Cloudformation: Error: Member must have length less than or equal to 20
<p>I'm using this CloudFormation template to create a Cognito User Pool:</p> <pre><code>{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Template creates AWS Cognito UserPool.", "Resources": { "CognitoUserPool": { "Type": "AWS::Cognito::UserPool", "Properties": { ...
0
7,752
Compile and run libconfig++
<p>I installed:</p> <pre><code>sudo apt-get install libconfig++-dev </code></pre> <p>After that I want compile and run the example program libconfig++.</p> <p>Program:</p> <pre><code>/* ---------------------------------------------------------------------------- libconfig - A library for processing structured co...
0
3,195
Custom login and registration with auth laravel 5.7
<p>I'm trying to create the first project with <em>Laravel 5.7</em>. </p> <p>In this project I have three different areas with three different login (ex. Login for users, login for admin, login for technicians).<br /></p> <p>Now, I would like to customize the first login (url, html, input, class, db table, db column ...
0
1,525
circular array implementation
<p>This is my implementation of a circular array so far. It is supposed to store the last 5 commands entered, by entering the 6th command in the place of the 5th and discarding the 1st. What I have managed to do so far is, to able to store the 5 commands and print them out. On the 6th command, I noticed that it goes in...
0
1,264
Horizontal Click and Drag Scrolling with JS - Prevent click on mouseup
<p>I have created a horizontal projects gallery. I want to let the visitor drag right &amp; left to scroll.</p> <p>This is my pen: <a href="https://codepen.io/omritk1/pen/qBByEoR" rel="noreferrer">https://codepen.io/omritk1/pen/qBByEoR</a>. My problem is that after the scroll, on "mouseup", it triggers click on the l...
1
1,870
App crashes with "isWhitelistProcess - Process is Whitelisted"
<p>I have two classes <code>TrapCard</code> and <code>EquipmentCard</code>, from which I want to make an object and pass this object through activities. I put a string and a int variable into my parcelable object. The int variable is a reference to an <code>.svg</code> image. And then I'm trying to get the reference fr...
1
1,409
Django-OAuth-ToolKit : Generating access token's for multiple resources/services using client credentials grant type of OAuth2.0
<p>I have a couple of backend API's which are Django projects. They have a UI ( single page app) to it and a user name password based login.</p> <p>My clients are usually developers and they don't want the UI , all they want is the access to the backend API's and they can build their own dashboards etc. They would want...
1
1,470
CreateWindowEx failing
<p>I'm following the NeHe gamedev tutorials (while altering them to be OO) and I've run into a problem with the CreateWindowEx demo (http://nehe.gamedev.net/tutorial/creating_an_opengl_window_(win32)/13001/).</p> <p>I'm trying to pass the WndProc a pointer to my Window object via the lpParam (as detailed here: <a href...
1
2,523
NetConnection.Call.Failed happening sporadically in Flex3/Tomcat/BlazeDS/Spring
<p>I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that has worked very well while developing locally, fine when I deployed to a common dev environment, but then fails very often when deployed to our test environment. </p> <p>The failures seem to happen most when a remoting requ...
1
2,083
Angle Measurer in C#
<p>I want to make a tool that can measure angles between two user defined spots on a form. I have no code to do this at the moment, so any code would be appreciated.</p> <p>Thanks</p> <p><strong>UPDATE</strong></p> <p>It needs to be in Degrees and my points are 3 pictureboxes, each with different colours on each of ...
1
1,238
How to include one html file in an html with angularjs
<p>My main html page is given below index.html</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html ng-app&gt; &lt;head&gt; &lt;meta charset="ISO-8859-1"&gt; &lt;title&gt;Demo&lt;/title&gt; &lt;script type="text/javascript" src="js/lib/angular.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/controllers/a...
1
1,631
How to get my test working with JUnit5 using SpringExtension?
<p>I'm trying to get my test using JUnit5, but am getting a <code>NullPointerException</code> on the auto-wired restTemplate bean.</p> <p>TestConfig:</p> <pre><code>import org.springframework.boot.web.client.RestTemplateBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.an...
1
3,292
Calculating Processing and Request time for multiple Asynchronous Requests
<p>For data visualization request in my application, I am sending multiple AJAX requests to a servlet in order to get the data in chunks and on callback of each request, the data received is rendered over map. </p> <p>For this request, I am trying to calculate: </p> <ul> <li>Request Time (how much total time it took ...
1
1,309
ASP.NET Core: InvalidOperationException: No authenticationScheme was specified, and there was no DefaultSignInScheme found
<p>We have a brand new ASP.NET Core site, for the purpose of upgrading an old ASP.NET Framework site. We used DotNetOpenAuth for OpenID logins back then, and now we're trying to replicate in ASP.NET Core.</p> <p>We have gotten as far as our site redirecting to the OpenID provider, being able to log in, but it throws ...
1
1,557
Active Nav Link
<p>I have been trying to get to grips with responsive layouts. </p> <p>The active link on the nav bar does not appear to be working and I cannot see what I have done wrong. </p> <p>I would like the navigation bar to highlight the current active page. In this case, the active page is the home page. At the moment it is...
1
1,333
HibernateInterceptor with spring 3.1 and hibernate 4.01
<p>I'm running into problems upgrading from hibernate 3.6 to 4.0.1 (spring from 3 to 3.1).</p> <p>I'm using hibernateinterceptors for injecting the session when calling some methods (e.g. a OnMessage call, Cron updater etc) and OpennSessionInView interceptor for the web requests. It has been working fine with hib 3.6 ...
1
1,946
SQL Insert in While Loop
<p>I am trying to use a while loop to loop through some data and then add each one to sql. This is the code I've done so far:</p> <pre><code> SqlCommand cmd = new SqlCommand(); cmd.Connection = SqlConn; while (dr.Read()) { cmd.CommandText = "insert into CPC_Coupons(Po...
1
1,376
How to Sort a Map<String, List<Object>> by the Key with the most values (that are not numeric) assigned to it
<p>I have been working with Maps at present and I am baffled by how I can get my program to work effectively. I can iterate over the map get the keys and values and sort them in alphabetical and reverse alphbetical order quite easily and have used custom comparators for this. However, I am now trying to sort the map...
1
1,208
Bigint Subtraction in C++
<p>Here I have a bigint class that uses an array called SafeArray that I created in a different class(we couldnt use vectors) the set and get function calls are from the SafeArray class, get takes an int parameter for array position and set takes 2 int parameters(one for position and one for value) all methods in this ...
1
1,130
Powermock 1.6.3 with Javassist 3.18.2-GA produces a NoSuchMethodError
<p>I am using Powermock 1.6.3 with Javassist 3.18.2-GA, Mockito 1.10.19, JUnit 4.11 and JDK1.8. I did not write the tests or the test classes and therefore, I am not very familiar with these libraries. Did not have any problems building on JDK1.7. I have been assigned the task to uplift the application to JDK1.8 and th...
1
1,416
NGINX Ingress Controller's Default Backend
<p>I have a kubernetes cluster which I am running tests on and I have setup an NGINX Ingress controller using this mage: <a href="http://quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.11.0" rel="nofollow noreferrer">quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.11.0</a></p> <p>As f...
1
1,826
javascript lottery game using random numbers what is wrong with my logic
<p>A simple straight forward game user enters 6 numbers and clicks button play, if all 6 numbers are matched they win lottery, I have set up the loop so that it keeps generating a random numbers until the user wins, then informs them the number of loops it took to get to winning numbers. My problem with logic is that ...
1
1,428
Drag from Tree to div
<p>I am trying to implement a drag and drop senario from an extJs TreePanel into a div in the body of the page. I have been following an example by Saki <a href="http://examples.extjs.eu/" rel="nofollow noreferrer">here</a>.</p> <p>So far I have the below code:</p> <pre><code>var contentAreas = new Array(); var tree ...
1
1,864
Custom RuntimeException not caught
<p>I have my own ApplicationException witch extends RuntimeException:</p> <pre><code>package com.haslerrail.aura.common.exception; public class ApplicationException extends RuntimeException { private static final long serialVersionUID = 1L; private final ErrorCode errorCode; private final Object[] argu...
1
1,372
@ModelAttribute fields are null in Spring controller
<p>I followed a tutorial to handle form submission in Spring. I wanted to populate my <code>TaskEntity</code> bean with the form and have this bean's values available in my controller's <code>taskSubmit</code> method. However, all of the properties of <code>task</code> in this method are null when I fill out the form a...
1
1,534
Oculus Rift CV1 Black Display
<p>I recently bough my brand new CV1. Even though My GTX 980M is not recommended VGA but it should display something. Now about the problem. It started with Oculus Home setup, seem to everything worked fine, even tracking is working, I listened audio from setup process but display was completely black. And LED is orang...
1
2,541
Highlight numbers like keywords in a Notepad++ custom language (for access logs)
<p>I want to write a custom language for access logs in Notepad++.</p> <p>The Problem is that numbers (here: HTTP status codes) won't be highlighted like real keywords (i.e. GET). Notepad++ only provides a highlight color for numbers in general.</p> <p>How do I handle numbers like text?</p> <p><strong>Sample log fil...
1
1,071
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
<p>I have just started working on Angular (Angular CLI: 9.1.12, Node: 12.16.2). I am studying basic of angular.</p> <p>I have a Django REST API running locally at -</p> <pre><code>http://127.0.0.1:8000/view/websyellow/ </code></pre> <p>Now I want to make a normal post service from angular. Service is working fine on GE...
1
1,338
Sqlsrv_field_metadata with name and type
<p>Working on converting my mysql php code to sqlsrv, but having issue how to grap the type and name with sqlsrv_field_metadata.</p> <p>This is the code: EDIT ( I have pasted the whole code here)</p> <pre><code> $sql = " SELECT tasks.title as Oppgaver, routines.value as Verdi, DATE_FORMAT(routines.date, '%d/%m/%Y...
1
2,241
BinarySecurityToken with wcf
<p>I've successfully tested connecting to a SOAP service using SoapUI (5.1.2), and now I need to generate the soap requests from a C# application.</p> <p>I added a keystore to SoapUI, where the certificate is stored, and the security configuration from SoapUI is fairly straighforward...</p> <p><img src="https://i.sta...
1
1,623
RabbitMQ C# connection trouble: None of the specified endpoints were reachable
<p>I have this code:</p> <pre><code>public class Rabbit { public IConnection GetConnection() { ConnectionFactory connectionFactory = new ConnectionFactory(); Uri uri = new Uri("amqp://login:password@1.2.3.4:5672/host"); connectionFactory.Uri = uri; re...
1
1,030
camera app not working?
<p>I got following stack trace</p> <pre><code>04-17 12:11:56.378: D/ATRecorder(10379): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader@40528b78 04-17 12:11:56.408: D/WindowManagerImpl(10379): addView, new view, mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView@40520738 04-17 1...
1
2,266
how to display json object in textview
<p>this is the activity .. plss help .. it doesn't appear on my textview ..What I'm trying to do here is displaying the profile of the admin upon clicking profile option in navigation drawer .. thanks in advance .. </p> <p>please kindly comment your suggestion on how to solve this ..</p> <pre><code> public class P...
1
1,525
Amazon MWS Api SubmitFeed _POST_FLAT_FILE_INVLOADER_DATA_ incorrect template type error
<p>I am working with the Amazon MWS PHP MarketplaceWebService PHP API to submit inventory feed data to Amazon.</p> <p><a href="https://docs.developer.amazonservices.com/en_US/feeds/Feeds_SubmitFeed.html">https://docs.developer.amazonservices.com/en_US/feeds/Feeds_SubmitFeed.html</a></p> <p>I can submit my generated i...
1
2,067
how to query oracle database based on user input using asp.net c#
<p>I am facing problem when I try to query oracle database based on user input and fill in dataset for displaying in xml format. Here I wrote my code :-</p> <pre><code>using System.Data.OracleClient; [WebMethod] public string CallCardDetails(string CallCardNo) { //initialize DataSet ds = new DataSet(); ...
1
1,780
issue creating Custom Id generator in hibernate
<pre><code>Initial SessionFactory creation failed.org.hibernate.MappingException: Could not instantiate id generator [entity-name=com.usermanagement.model.Employee] Exception in thread "main" java.lang.ExceptionInInitializerError at com.finicspro.usermanagement.util.HibernateUtil.buildSessionFactory(HibernateUtil.j...
1
1,405
How do you call a stored procedure in MVC3 C#
<p>I am looking for a way to call my stored procedure in my C# code in the controller. I already have everything that I need in the controller. I have the ID on the post of the edit, and what I need to do when submitted is call the stored procedure with the parameter id. In SQL you do this: </p> <pre><code> EXEC [d...
1
1,055
@Formula annotation not working while retriving the persisted entity in same operation, why?
<p>I'm using <code>Spring + Spring Data JPA</code> example. In this using <code>@Formula</code> annotation to do some processing on data post retrieval from DB. In my project, each Entity <code>@Formula</code> annotation is meant for the different different purposes. Here I'd like to understand the concept as I dont fi...
1
4,524
Node.js Cannot read property &#39;firstname&#39; of undefined
<p>I am new to node.js. I am trying to do create a registration page and save the entered values in database using mysql.</p> <p>I am able to do so by passing parameters on request header. But, it's always not a good idea to pass parameters in request header. So trying to pass parameters on Request body.</p> <p>I am ...
1
1,373
Error when launching spring boot server
<p>Since I tried to connect my app to a postgres database instead of h2 I am getting the following error when starting my jetty/spring boot server :</p> <pre class="lang-none prettyprint-override"><code>2016-03-02 20:22:15.820 INFO 12954 --- [ restartedMain] com.bau.Application : Starting Applic...
1
6,284
10.1.3 Guess the Word, Part 2 Help Needed
<p>I am currently stuck on exercise 10.1.3 on CodeHS, which is essentially a part in making a hangman game, without the hangman. I have my code nearly complete for this section of the game, yet for some reason whenever new input is given (for a letter), it clears previous input.</p> <p>Here is my code:</p> <pre><code>s...
1
1,499